1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-09-19 10:50:11 +00:00

Compare commits

..

No commits in common. "93399926933ed7f3e8c7c9959deeb72dc7a79ec3" and "a7529c749806b2213dab914c7564f98a03fe3f9d" have entirely different histories.

3 changed files with 8 additions and 17 deletions

View File

@ -85,7 +85,7 @@ steps:
commands: commands:
- curl -sL https://git.io/goreleaser > goreleaser - curl -sL https://git.io/goreleaser > goreleaser
- chmod +x goreleaser - chmod +x goreleaser
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean - ./scripts/version.sh ./goreleaser --snapshot --skip-publish --clean
- wget https://builds.hrfee.pw/upload.py - wget https://builds.hrfee.pw/upload.py
- pip3 install requests - pip3 install requests
- bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"' - bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"'
@ -164,7 +164,7 @@ steps:
commands: commands:
- curl -sL https://git.io/goreleaser > goreleaser - curl -sL https://git.io/goreleaser > goreleaser
- chmod +x goreleaser - chmod +x goreleaser
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean - ./scripts/version.sh ./goreleaser --snapshot --skip-publish --clean
trigger: trigger:
event: event:

View File

@ -1,5 +1,3 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: jfa-go project_name: jfa-go
release: release:
github: github:

View File

@ -266,20 +266,13 @@ class ReferralCard {
get code(): string { return this._code; } get code(): string { return this._code; }
set code(c: string) { set code(c: string) {
this._code = c; this._code = c;
let url = window.location.href;
let u = new URL(window.location.href); for (let split of ["#", "?", "account", "my"]) {
let path = u.pathname; url = url.split(split)[0];
for (let split of ["account", "my"]) {
path = path.split(split)[0];
} }
if (path.slice(-1) != "/") { path += "/"; } if (url.slice(-1) != "/") { url += "/"; }
path = path + "invite/" + this._code; url = url + "invite/" + this._code;
this._url = url;
u.pathname = path;
u.hash = "";
u.search = "";
this._url = u.toString();
} }
get remaining_uses(): number { return this._remainingUses; } get remaining_uses(): number { return this._remainingUses; }