bazaar-contrib-server-github 0.3.0rc1__tar.gz → 0.3.0rc2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/PKG-INFO +2 -2
  2. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/pyproject.toml +3 -3
  3. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/pyproject.toml.orig +3 -3
  4. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/locales/en.toml +1 -0
  5. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/locales/zh-CN.toml +1 -0
  6. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/templates/github/settings.html +3 -3
  7. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/LICENSE +0 -0
  8. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/README.md +0 -0
  9. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/__init__.py +0 -0
  10. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/client.py +0 -0
  11. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/method.py +0 -0
  12. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/THIRD_PARTY.md +0 -0
  13. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/static/github.css +0 -0
  14. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/templates/github/github.svg +0 -0
  15. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/templates/github/icons/eye-off.svg +0 -0
  16. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/resources/templates/github/icons/eye.svg +0 -0
  17. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/schema.py +0 -0
  18. {bazaar_contrib_server_github-0.3.0rc1 → bazaar_contrib_server_github-0.3.0rc2}/src/bazaar_contrib_server_github/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bazaar-contrib-server-github
3
- Version: 0.3.0rc1
3
+ Version: 0.3.0rc2
4
4
  Summary: Logging in to the Bazaar Compute server with a GitHub account
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -9,7 +9,7 @@ Requires-Dist: bazaar-core~=0.3.0rc1
9
9
  Requires-Dist: bazaar-contrib-http~=0.3.0rc1
10
10
  Requires-Dist: bazaar-contrib-schema~=0.3.0rc1
11
11
  Requires-Dist: bazaar-contrib-storage~=0.3.0rc1
12
- Requires-Dist: bazaar-contrib-server~=0.3.0rc3
12
+ Requires-Dist: bazaar-contrib-server~=0.3.0rc12
13
13
  Requires-Dist: bazaar-contrib-server-access~=0.3.0rc2
14
14
  Requires-Dist: bazaar-contrib-server-database~=0.3.0rc1
15
15
  Requires-Dist: pydantic>=2.12.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bazaar-contrib-server-github"
3
- version = "0.3.0rc1"
3
+ version = "0.3.0rc2"
4
4
  description = "Logging in to the Bazaar Compute server with a GitHub account"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "bazaar-contrib-http~=0.3.0rc1",
13
13
  "bazaar-contrib-schema~=0.3.0rc1",
14
14
  "bazaar-contrib-storage~=0.3.0rc1",
15
- "bazaar-contrib-server~=0.3.0rc3",
15
+ "bazaar-contrib-server~=0.3.0rc12",
16
16
  "bazaar-contrib-server-access~=0.3.0rc2",
17
17
  "bazaar-contrib-server-database~=0.3.0rc1",
18
18
  "pydantic>=2.12.0",
@@ -59,7 +59,7 @@ extend-select = ["ASYNC"]
59
59
  dev = [
60
60
  "bazaar-contrib-server-migrations~=0.3.0rc2",
61
61
  "bazaar-contrib-sqlite~=0.3.0rc1",
62
- "bazaar-contrib-timer-wheel~=0.3.0rc1",
62
+ "bazaar-contrib-timer~=0.3.0rc26",
63
63
  "blockbuster>=1.5.29,<1.6",
64
64
  "httpx>=0.28.0,<1",
65
65
  "playwright>=1.55.0",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bazaar-contrib-server-github"
3
- version = "0.3.0rc1"
3
+ version = "0.3.0rc2"
4
4
  description = "Logging in to the Bazaar Compute server with a GitHub account"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -12,7 +12,7 @@ dependencies = [
12
12
  "bazaar-contrib-http~=0.3.0rc1",
13
13
  "bazaar-contrib-schema~=0.3.0rc1",
14
14
  "bazaar-contrib-storage~=0.3.0rc1",
15
- "bazaar-contrib-server~=0.3.0rc3",
15
+ "bazaar-contrib-server~=0.3.0rc12",
16
16
  "bazaar-contrib-server-access~=0.3.0rc2",
17
17
  "bazaar-contrib-server-database~=0.3.0rc1",
18
18
  "pydantic>=2.12.0",
@@ -55,7 +55,7 @@ extend-select = ["ASYNC"]
55
55
  dev = [
56
56
  "bazaar-contrib-server-migrations~=0.3.0rc2",
57
57
  "bazaar-contrib-sqlite~=0.3.0rc1",
58
- "bazaar-contrib-timer-wheel~=0.3.0rc1",
58
+ "bazaar-contrib-timer~=0.3.0rc26",
59
59
  "blockbuster>=1.5.29,<1.6",
60
60
  "httpx>=0.28.0,<1",
61
61
  "playwright>=1.55.0",
@@ -14,6 +14,7 @@
14
14
  "github.callback.hint" = "On GitHub, create an app under Settings › Developer settings › OAuth Apps with the address above as its Authorization callback URL, then fill in its Client ID and a Client Secret generated there."
15
15
  "github.copy" = "Copy"
16
16
  "github.copied" = "Copied"
17
+ "github.copy.failed" = "Not copied, copy it by hand"
17
18
  "github.offer" = "Once saved, the login page offers logging in with GitHub."
18
19
  "github.offered" = "Offered on the login page"
19
20
  "github.invalid" = "Not saved: check the required fields and the callback URL."
@@ -14,6 +14,7 @@
14
14
  "github.callback.hint" = "在 GitHub 的 Settings › Developer settings › OAuth Apps 里新建应用,Authorization callback URL 填上面的回调地址;创建后把 Client ID 和生成的 Client Secret 填到这里。"
15
15
  "github.copy" = "复制"
16
16
  "github.copied" = "已复制"
17
+ "github.copy.failed" = "没复制上,请手动复制"
17
18
  "github.offer" = "保存后,登录页出现「用 GitHub 账号登录」。"
18
19
  "github.offered" = "已出现在登录页"
19
20
  "github.invalid" = "没有保存:请检查必填项和回调地址。"
@@ -40,12 +40,12 @@
40
40
  </span>
41
41
  </div>
42
42
  {# where GitHub sends the browser back: under the address this page is seen at, not the one the server hears #}
43
- <div class="field wide" x-data="{ copied: false }">
43
+ <div class="field wide" x-data="{ copied: null }">
44
44
  <label for="redirect_uri">{{ t.text("github.callback") }}</label>
45
45
  <span class="input ro">
46
46
  <input class="mono" id="redirect_uri" name="redirect_uri" x-ref="callback" readonly x-init="$el.value = location.origin + '{{ callback }}'">
47
- <button class="suffix copy" type="button" @click="$refs.callback.select(); navigator.clipboard?.writeText($refs.callback.value); copied = true">
48
- <span x-show="!copied">{{ t.text("github.copy") }}</span><span x-show="copied" x-cloak>{{ t.text("github.copied") }}</span>
47
+ <button class="suffix copy" type="button" @click="$refs.callback.select(); copied = await bazaarCopy($refs.callback.value)">
48
+ <span x-show="copied === null">{{ t.text("github.copy") }}</span><span x-show="copied === true" x-cloak>{{ t.text("github.copied") }}</span><span x-show="copied === false" x-cloak>{{ t.text("github.copy.failed") }}</span>
49
49
  </button>
50
50
  </span>
51
51
  <span class="hint">{{ t.text("github.callback.hint") }}</span>