Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 32dd72a

Browse files
idk
1 parent f0130d6 commit 32dd72a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+5987
-0
lines changed

dao-2048-main.zip

-348 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# git
2+
.git
3+
.gitattributes
4+
.gitignore
5+
6+
# Common
7+
Dockerfile
8+
Dockerfile.nginx
9+
Dockerfile.static
10+
Makefile
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Enable version updates for Docker
9+
- package-ecosystem: "docker"
10+
# Look for a `Dockerfile` in the `root` directory
11+
directory: "/"
12+
# Check for updates once a week
13+
schedule:
14+
interval: "weekly"
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish-images:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v1
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v1
17+
- name: checkout code
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v1
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Release the Docker image
28+
run: make cross-release-container
29+
30+
release-charts:
31+
needs: [publish-images]
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
- name: Configure Git
39+
run: |
40+
git config user.name "$GITHUB_ACTOR"
41+
git config user.email "[email protected]"
42+
- name: Chart releaser
43+
if: startsWith(github.ref, 'refs/tags/v') # we craft releases only for tags
44+
run: |
45+
bash scripts/perpare_build_env.sh
46+
47+
repo=$(basename "$GITHUB_REPOSITORY")
48+
owner=$(dirname "$GITHUB_REPOSITORY")
49+
tag="${GITHUB_REF_NAME:1}"
50+
export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
51+
52+
exists=$(curl -s -H "Accept: application/vnd.github.v3+json" https://github.com/$GITHUB_REPOSITORY/releases/tag/$repo-chart-$tag -w %{http_code} -o /dev/null)
53+
if [[ $exists != "200" ]]; then
54+
echo "Creating release..."
55+
make helm-chart-release
56+
else
57+
echo "Release already exists"
58+
fi
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Cross Build
2+
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: [ main ]
10+
schedule:
11+
- cron: "0 0 * * 0"
12+
workflow_dispatch:
13+
14+
jobs:
15+
publish-images:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v1
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v1
22+
- name: checkout code
23+
uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
- name: Release the Docker image
27+
run: make cross-build-container
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
workflow_dispatch:
12+
13+
jobs:
14+
ci:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: checkout code
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
- name: test
24+
run: make test
25+
- name: cve scan the Docker image
26+
run: |
27+
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
28+
make cve-scan
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.sass-cache/
2+
.cr-release-packages/
3+
podinfo.txt
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"esnext": true,
3+
"indent": 2,
4+
"maxlen": 80,
5+
"freeze": true,
6+
"camelcase": true,
7+
"unused": true,
8+
"eqnull": true,
9+
"proto": true,
10+
"supernew": true,
11+
"noyield": true,
12+
"evil": true,
13+
"node": true,
14+
"boss": true,
15+
"expr": true,
16+
"loopfunc": true,
17+
"white": true,
18+
"maxdepth": 4
19+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Changelog
2+
3+
## 1.4.1 (2023-3-2)
4+
5+
#### Enhancements:
6+
- Enhancement security
7+
8+
## 1.4.0 (2023-2-9)
9+
10+
#### Enhancements:
11+
- sw64 support (multi-arch image)
12+
13+
## 1.3.1 (2022-12-20)
14+
15+
#### Fix:
16+
- Hot Fix for the chart version
17+
18+
## 1.3.0 (2022-12-20)
19+
20+
#### Enhancements:
21+
22+
- loongarch64 support (multi-arch image)
23+
- mips64le support
24+
- [Charts Syncer](https://github.com/DaoCloud/charts-syncer) Supoort
25+
- Bump nginx from 1.23.2-alpine to 1.23.3-alpine
26+
- Bump halverneus/static-file-server from v1.8.8 to v1.8.9
27+
28+
## 1.2.1 (2022-11-01)
29+
30+
#### Enhancements:
31+
32+
- loongarch64 support
33+
34+
## 1.2.0 (2022-09-23)
35+
36+
#### Enhancements:
37+
38+
- [#66] ipv6 support
39+
40+
## 1.1.0 (2022-08-26)
41+
42+
#### Enhancements:
43+
44+
- [#54] Bump nginx from 1.23.0-alpine to 1.23.1-alpine
45+
- [#57] remove the apk update
46+
- [#56] add Static file server
47+
- [#60] reduce nginx worker to 1
48+
- [#50] FIX CVE
49+
- [#48] Add loadbalancer
50+
- [#47] fix helm image
51+
- [#43] add no-nginx image
52+
- [#33] Remove base image var in Dockerfile
53+
- [#29] Create dependabot.yml
54+
- [#32] Update the Nginx version to fix the CVEs
55+
- [#25] Update the Nginx version to fix the CVEs
56+
57+
---
58+
59+
## 1.1.0 (2022-07-19)
60+
61+
#### Enhancements:
62+
63+
- [#50] FIX CVE
64+
- [#48] Add loadbalancer
65+
- [#47] fix helm image
66+
67+
---
68+
69+
## 1.1.0-beta.3 (2022-07-12)
70+
71+
#### Enhancements:
72+
73+
- [#43] add no-nginx image
74+
75+
---
76+
77+
## 1.1.0-beta.1 (2022-05-20)
78+
79+
#### Enhancements:
80+
81+
- [#33] Remove base image var in Dockerfile
82+
- [#29] Create dependabot.yml
83+
84+
#### Bug Fixes:
85+
86+
- [#32] Update the Nginx version to fix the CVEs
87+
- [#25] Update the Nginx version to fix the CVEs
88+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Contributing
2+
Changes and improvements are more than welcome! Feel free to fork and open a pull request.
3+
4+
Please follow the house rules to have a bigger chance of your contribution being merged.
5+
6+
## House rules
7+
8+
### How to make changes
9+
- To make changes, create a new branch based on `master` (do not create one from `gh-pages` unless strictly necessary) and make them there, then create a Pull Request to master.
10+
`gh-pages` is different from master in that it contains sharing features, analytics and other things that have no direct bearing with the game. `master` is the "pure" version of the game.
11+
- If you want to modify the CSS, please edit the SCSS files present in `style/`: `main.scss` and others. Don't edit the `main.css`, because it's supposed to be generated.
12+
In order to compile your SCSS modifications, you need to use the `sass` gem (install it by running `gem install sass` once Ruby is installed).
13+
To run SASS, simply use the following command:
14+
`sass --unix-newlines --watch style/main.scss`
15+
SASS will automatically recompile your css when changed.
16+
- `Rakefile` contains some tasks that help during development. Feel free to add useful tasks if needed.
17+
- Please use 2-space indentation when editing the JavaScript. A `.jshintrc` file is present, which will help your code to follow the guidelines if you install and run `jshint`.
18+
- Please test your modification thoroughly before submitting your Pull Request.
19+
20+
### Changes that might not be accepted
21+
We have to be conservative with the core game. This means that some modifications won't be merged, or will have to be evaluated carefully before being merged:
22+
23+
- Undo/redo features
24+
- Save/reload features
25+
- Changes to how the tiles look or their contents
26+
- Changes to the layout
27+
- Changes to the grid size
28+
29+
### Changes that are welcome
30+
- Bug fixes
31+
- Compatibility improvements
32+
- "Under the hood" enhancements
33+
- Small changes that don't have an impact on the core gameplay

0 commit comments

Comments
 (0)