diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 index 0c12830..f79d6ed --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + # dependencies /node_modules /.pnp @@ -6,6 +8,17 @@ # testing /coverage +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + # debug npm-debug.log* yarn-debug.log* @@ -17,15 +30,16 @@ yarn-error.log* .env.test.local .env.production.local -# build outputs -package-lock.json -dist/ -target/ +# vercel +.vercel -# common artifact extensions **/*.trace **/*.zip **/*.tar.gz **/*.tgz **/*.log +package-lock.json **/*.bun + +dist/ +target/ diff --git a/.goosehints b/.goosehints old mode 100755 new mode 100644 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100755 new mode 100644 diff --git a/.prettierrc.json b/.prettierrc.json old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/ansible/deploy.yml b/ansible/deploy.yml deleted file mode 100755 index c7b5734..0000000 --- a/ansible/deploy.yml +++ /dev/null @@ -1,84 +0,0 @@ ---- -- name: Deploy gomoku project - hosts: all - become: yes - vars: - app_user: 'gomoku' - app_home: '/home/{{ app_user }}' - - tasks: - - name: Ensure user exists - user: - name: '{{ app_user }}' - shell: /bin/bash - create_home: yes - home: '{{ app_home }}' - - - name: Create data directory - file: - path: '{{ app_home }}/public' - state: directory - owner: '{{ app_user }}' - group: '{{ app_user }}' - - - name: Copy binary to target location - copy: - src: ../target/gomoku - dest: '{{ app_home }}/gomoku' - owner: '{{ app_user }}' - group: '{{ app_user }}' - mode: '0755' - - - name: Copy data directory - synchronize: - src: ../public/ - dest: '{{ app_home }}/public/' - recursive: yes - owner: no - group: no - archive: yes - delete: yes - - - name: Ensure Caddy directory exists - file: - path: /etc/caddy/sites - state: directory - - - name: Copy Caddy configuration - copy: - src: gomoku.caddy - dest: /etc/caddy/sites/gomoku.caddy - owner: root - group: root - mode: '0644' - register: caddy_config_copy - - - name: Restart Caddy service if config changed - systemd: - name: caddy - state: restarted - daemon_reload: yes - when: caddy_config_copy.changed - - - name: Ensure Supervisor directory exists - file: - path: /etc/supervisor/conf.d - state: directory - - - name: Copy Supervisor configuration - copy: - src: gomoku.supervisor - dest: /etc/supervisor/conf.d/gomoku.conf - owner: root - group: root - mode: '0644' - - - name: Reload Supervisor - supervisorctl: - name: gomoku - state: present - - - name: Restart the service - supervisorctl: - name: gomoku - state: restarted diff --git a/ansible/gomoku.caddy b/ansible/gomoku.caddy deleted file mode 100755 index 794590f..0000000 --- a/ansible/gomoku.caddy +++ /dev/null @@ -1,3 +0,0 @@ -gomoku.sepiatones.xyz { - reverse_proxy localhost:3002 -} diff --git a/ansible/gomoku.supervisor b/ansible/gomoku.supervisor deleted file mode 100755 index f5e5b3a..0000000 --- a/ansible/gomoku.supervisor +++ /dev/null @@ -1,10 +0,0 @@ -[program:gomoku] -command=/home/gomoku/gomoku -directory=/home/gomoku -user=gomoku -autostart=true -autorestart=true -startretries=3 -stderr_logfile=/var/log/supervisor/gomoku.err.log -stdout_logfile=/var/log/supervisor/gomoku.out.log -environment=PORT=3002 diff --git a/ansible/hosts.ini b/ansible/hosts.ini deleted file mode 100755 index 2a3e189..0000000 --- a/ansible/hosts.ini +++ /dev/null @@ -1,3 +0,0 @@ -# It is expected that you have sepiatonesxyz defined in your .ssh/config -[production] -sepiatonesxyz ansible_host=sepiatonesxyz ansible_python_interpreter=/usr/bin/python3.11 diff --git a/justfile b/justfile old mode 100755 new mode 100644 index 0e5ff4b..601b4af --- a/justfile +++ b/justfile @@ -8,7 +8,7 @@ build: bun build --compile --minify --target bun --outfile ./target/gomoku ./src/index.ts deploy: build - ansible-playbook -i ansible/hosts.ini ansible/deploy.yml + rsync -avz target/gomoku sepiatonesxyz:~/gomoku test: bun test diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/public/icons/accept.svg b/public/icons/accept.svg old mode 100755 new mode 100644 diff --git a/public/icons/decline.svg b/public/icons/decline.svg old mode 100755 new mode 100644 diff --git a/public/icons/draw.svg b/public/icons/draw.svg old mode 100755 new mode 100644 diff --git a/public/icons/heart.svg b/public/icons/heart.svg new file mode 100755 index 0000000..611c11e --- /dev/null +++ b/public/icons/heart.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/public/icons/resign.svg b/public/icons/resign.svg old mode 100755 new mode 100644 diff --git a/public/icons/rotate-right.svg b/public/icons/rotate-right.svg old mode 100755 new mode 100644 diff --git a/public/icons/undo.svg b/public/icons/undo.svg old mode 100755 new mode 100644 diff --git a/public/index.html b/public/index.html old mode 100755 new mode 100644 index 72ad5d7..0b99d68 --- a/public/index.html +++ b/public/index.html @@ -47,14 +47,11 @@
- + - - -