@raketa-cloud/admin-starter-template 1.9.0 → 1.9.2

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.
@@ -54,16 +54,24 @@ jobs:
54
54
 
55
55
  deploy:
56
56
  needs: build-and-push-image
57
- runs-on: ubuntu-latest
57
+ name: Deploy image to Google Cloud Run
58
+ runs-on: [self-hosted, linux]
59
+ permissions:
60
+ contents: "read"
61
+ id-token: "write"
58
62
  steps:
59
- - name: Deploy to remote server
60
- uses: studioraketa/deploy-docker-ssh@8.0.0
63
+ - name: "Authenticate to Google Cloud"
64
+ uses: "google-github-actions/auth@v2"
65
+ with:
66
+ credentials_json: "${{ secrets.GCP_SA_KEY }}"
67
+ - name: "Deploy"
68
+ uses: "google-github-actions/deploy-cloudrun@v2"
61
69
  with:
62
- ssh_user: ${{ env.SSH_USER }}
63
- ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
64
- ssh_host: ${{ env.SSH_HOST }}
65
- container_name: ${{ env.CONTAINER_NAME }}
66
- external_port: ${{ env.EXTERNAL_PORT }}
67
- internal_port: ${{ env.INTERNAL_PORT }}
68
- image_url: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main
69
- docker_environment: -e RAKETA_ENV="staging"
70
+ image: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main"
71
+ service: "admin-starter"
72
+ env_vars: |-
73
+ GATEWAY_PROJECT=1-raketa-website-dizeip
74
+ RAKETA_ENV=staging
75
+ region: "europe-west4"
76
+ flags: "--port=6969"
77
+ project_id: "kosmodrum-214909"
package/biome.json CHANGED
@@ -1,10 +1,8 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3
- "organizeImports": {
4
- "enabled": true
5
- },
2
+ "$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
3
+ "assist": { "actions": { "source": { "organizeImports": "on" } } },
6
4
  "files": {
7
- "ignore": ["node_modules", ".git", ".vscode"]
5
+ "includes": ["**", "!**/node_modules", "!**/.git", "!**/.vscode"]
8
6
  },
9
7
  "formatter": {
10
8
  "enabled": false
@@ -16,8 +14,24 @@
16
14
  "security": {
17
15
  "noDangerouslySetInnerHtml": "off"
18
16
  },
17
+ "suspicious": {
18
+ "noDuplicateProperties": "off"
19
+ },
19
20
  "complexity": {
20
21
  "noForEach": "off"
22
+ },
23
+ "style": {
24
+ "noParameterAssign": "error",
25
+ "noDescendingSpecificity": "off",
26
+ "useAsConstAssertion": "error",
27
+ "useDefaultParameterLast": "error",
28
+ "useEnumInitializers": "error",
29
+ "useSelfClosingElements": "error",
30
+ "useSingleVarDeclarator": "error",
31
+ "noUnusedTemplateLiteral": "error",
32
+ "useNumberNamespace": "error",
33
+ "noInferrableTypes": "error",
34
+ "noUselessElse": "error"
21
35
  }
22
36
  }
23
37
  }
package/config/base.js CHANGED
@@ -12,25 +12,10 @@ export default {
12
12
  code: "bg",
13
13
  flag: "/static/_assets/flags/bg.svg",
14
14
  },
15
- de: {
16
- name: "German",
17
- code: "de",
18
- flag: "/static/_assets/flags/de.svg",
19
- },
20
- us: {
21
- name: "English (US)",
22
- code: "en-us",
23
- flag: "/static/_assets/flags/us.svg",
24
- },
25
- it: {
26
- name: "Italian",
27
- code: "it",
28
- flag: "/static/_assets/flags/it.svg",
29
- },
30
- fr: {
31
- name: "French",
32
- code: "fr",
33
- flag: "/static/_assets/flags/fr.svg",
15
+ es: {
16
+ name: "Spanish",
17
+ code: "es",
18
+ flag: "/static/_assets/flags/es.svg",
34
19
  },
35
20
  },
36
21
  timezones: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin-starter-template",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -15,9 +15,8 @@
15
15
  "prepare": "cp ./node_modules/@raketa-cloud/admin/dist/application.css ./static/application.css"
16
16
  },
17
17
  "dependencies": {
18
- "@biomejs/biome": "1.8.0",
19
- "@hono/node-server": "1.11.2",
20
- "@raketa-cloud/admin": "1.7.0",
18
+ "@hono/node-server": "1.17.1",
19
+ "@raketa-cloud/admin": "1.7.6",
21
20
  "graphql-request": "7.1.0",
22
21
  "hono": "^4.7.5",
23
22
  "prettier": "^3.3.1"
@@ -26,6 +25,7 @@
26
25
  "@babel/core": "7.24.7",
27
26
  "@babel/preset-env": "7.24.7",
28
27
  "@babel/preset-typescript": "7.24.7",
28
+ "@biomejs/biome": "2.1.3",
29
29
  "@types/node": "20.11.17",
30
30
  "jest": "29.7.0",
31
31
  "tsx": "^4.19.3"
package/src/app.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { serveStatic } from "@hono/node-server/serve-static";
2
2
  import {
3
3
  HonoAdapter,
4
+ routeStandard,
4
5
  setGlobalContext,
5
6
  setupCloud,
6
- routeStandard,
7
7
  } from "@raketa-cloud/admin";
8
8
  import { Hono } from "hono";
9
9
  import getConfig from "./getConfig";
@@ -1811,6 +1811,10 @@ select {
1811
1811
  width: 1.25rem;
1812
1812
  }
1813
1813
 
1814
+ .w-80 {
1815
+ width: 20rem;
1816
+ }
1817
+
1814
1818
  .w-9 {
1815
1819
  width: 2.25rem;
1816
1820
  }
@@ -1831,6 +1835,10 @@ select {
1831
1835
  width: 100%;
1832
1836
  }
1833
1837
 
1838
+ .flex-1 {
1839
+ flex: 1 1 0%;
1840
+ }
1841
+
1834
1842
  .flex-none {
1835
1843
  flex: none;
1836
1844
  }
@@ -2039,6 +2047,11 @@ select {
2039
2047
  padding: 1rem;
2040
2048
  }
2041
2049
 
2050
+ .px-3 {
2051
+ padding-left: 0.75rem;
2052
+ padding-right: 0.75rem;
2053
+ }
2054
+
2042
2055
  .px-4 {
2043
2056
  padding-left: 1rem;
2044
2057
  padding-right: 1rem;
@@ -2128,6 +2141,10 @@ select {
2128
2141
  font-weight: 600;
2129
2142
  }
2130
2143
 
2144
+ .uppercase {
2145
+ text-transform: uppercase;
2146
+ }
2147
+
2131
2148
  .lowercase {
2132
2149
  text-transform: lowercase;
2133
2150
  }
@@ -2218,6 +2235,12 @@ select {
2218
2235
  opacity: 0.6;
2219
2236
  }
2220
2237
 
2238
+ .shadow-inner {
2239
+ --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
2240
+ --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
2241
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2242
+ }
2243
+
2221
2244
  .shadow-lg {
2222
2245
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2223
2246
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);