omnieye-theme-studio 1.0.0 → 1.1.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.
- package/dist/index.esm.js +6386 -0
- package/dist/index.js +74 -0
- package/package.json +21 -6
- package/.claude/launch.json +0 -11
- package/.github/workflows/ci.yml +0 -88
- package/.github/workflows/promote.yml +0 -48
- package/Dockerfile +0 -20
- package/dist/assets/index-B0UK7Lt_.js +0 -200
- package/dist/index.html +0 -18
- package/index.html +0 -18
- package/nginx.conf +0 -15
- package/src/App.tsx +0 -79
- package/src/chrome/Footer.tsx +0 -21
- package/src/chrome/IconRail.tsx +0 -49
- package/src/chrome/StudioSubHeader.tsx +0 -14
- package/src/chrome/TopBar.tsx +0 -35
- package/src/main.tsx +0 -23
- package/src/panels/CardsPanel.tsx +0 -75
- package/src/panels/ColourPanel.tsx +0 -175
- package/src/panels/LoginPanel.tsx +0 -62
- package/src/panels/NotificationsPanel.tsx +0 -37
- package/src/panels/SurfacePanel.tsx +0 -66
- package/src/panels/TablesPanel.tsx +0 -57
- package/src/panels/ThemeManagement.tsx +0 -178
- package/src/panels/TypographyPanel.tsx +0 -154
- package/src/preview/CamerasPreview.tsx +0 -140
- package/src/preview/ComponentsPreview.tsx +0 -146
- package/src/preview/DashboardPreview.tsx +0 -138
- package/src/preview/LoginPreview.tsx +0 -111
- package/src/preview/OperationsPreview.tsx +0 -103
- package/src/preview/OrdersPreview.tsx +0 -108
- package/src/preview/PreviewPane.tsx +0 -111
- package/src/preview/ReportsPreview.tsx +0 -140
- package/src/preview/ToastLayer.tsx +0 -34
- package/src/preview/useFitCount.ts +0 -68
- package/src/shared/ChipGroup.tsx +0 -52
- package/src/shared/CropModal.tsx +0 -73
- package/src/shared/InfoBadge.tsx +0 -13
- package/src/shared/SectionAccordion.tsx +0 -89
- package/src/shared/StudioSlider.tsx +0 -103
- package/src/shared/SwatchPicker.tsx +0 -44
- package/src/shared/TabStrip.tsx +0 -51
- package/src/store/useStudioUi.ts +0 -47
- package/src/store/useThemeStore.ts +0 -103
- package/src/studio/StudioRail.tsx +0 -167
- package/src/theme/buildMuiTheme.ts +0 -53
- package/src/theme/color.ts +0 -68
- package/src/theme/presets.ts +0 -17
- package/src/theme/settings.ts +0 -158
- package/src/theme/studioTokens.ts +0 -24
- package/src/theme/tokens.ts +0 -243
- package/src/theme/useTokens.ts +0 -10
- package/tsconfig.json +0 -23
- package/tsconfig.tsbuildinfo +0 -1
- package/vite.config.ts +0 -7
package/package.json
CHANGED
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnieye-theme-studio",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
5
11
|
"scripts": {
|
|
6
12
|
"dev": "vite",
|
|
7
13
|
"build": "tsc -b && vite build",
|
|
14
|
+
"build:app": "BUILD_TARGET=app tsc -b && BUILD_TARGET=app vite build",
|
|
8
15
|
"preview": "vite preview"
|
|
9
16
|
},
|
|
10
17
|
"dependencies": {
|
|
18
|
+
"zustand": "^5.0.2"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@emotion/react": ">=11",
|
|
22
|
+
"@emotion/styled": ">=11",
|
|
23
|
+
"@mui/material": ">=5",
|
|
24
|
+
"@mui/icons-material": ">=5",
|
|
25
|
+
"react": ">=18",
|
|
26
|
+
"react-dom": ">=18"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
11
29
|
"@emotion/react": "^11.13.3",
|
|
12
30
|
"@emotion/styled": "^11.13.0",
|
|
13
31
|
"@mui/material": "^7.0.0",
|
|
14
32
|
"@mui/icons-material": "^7.0.0",
|
|
15
|
-
"react": "^19.0.0",
|
|
16
|
-
"react-dom": "^19.0.0",
|
|
17
|
-
"zustand": "^5.0.2"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
33
|
"@types/react": "^19.0.0",
|
|
21
34
|
"@types/react-dom": "^19.0.0",
|
|
22
35
|
"@vitejs/plugin-react": "^4.3.4",
|
|
36
|
+
"react": "^19.0.0",
|
|
37
|
+
"react-dom": "^19.0.0",
|
|
23
38
|
"typescript": "^5.7.2",
|
|
24
39
|
"vite": "^6.0.5"
|
|
25
40
|
}
|
package/.claude/launch.json
DELETED
package/.github/workflows/ci.yml
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
env:
|
|
4
|
-
IMAGE_NAME: theme-studio
|
|
5
|
-
HELM_REPO: Digital-Twin-Operations/helm-charts
|
|
6
|
-
HELM_CHART: theme-studio
|
|
7
|
-
|
|
8
|
-
on:
|
|
9
|
-
pull_request:
|
|
10
|
-
push:
|
|
11
|
-
branches:
|
|
12
|
-
- main
|
|
13
|
-
- stage
|
|
14
|
-
workflow_dispatch:
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
# checks:
|
|
18
|
-
# uses: Digital-Twin-Operations/.github/.github/workflows/node-checks.yml@main
|
|
19
|
-
# with:
|
|
20
|
-
# run_lint: false
|
|
21
|
-
# run_format_check: false
|
|
22
|
-
# run_type_check: false
|
|
23
|
-
# build_command: npm run build
|
|
24
|
-
|
|
25
|
-
build-and-push:
|
|
26
|
-
# needs: checks
|
|
27
|
-
if: github.event_name != 'pull_request'
|
|
28
|
-
runs-on: ubuntu-latest
|
|
29
|
-
|
|
30
|
-
steps:
|
|
31
|
-
- name: Checkout repository
|
|
32
|
-
uses: actions/checkout@v4
|
|
33
|
-
|
|
34
|
-
- name: Set up Docker Buildx
|
|
35
|
-
uses: docker/setup-buildx-action@v3
|
|
36
|
-
|
|
37
|
-
- name: Derive short image tag
|
|
38
|
-
run: echo "IMAGE_TAG=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_ENV
|
|
39
|
-
|
|
40
|
-
- name: Log in to Docker Hub
|
|
41
|
-
uses: docker/login-action@v3
|
|
42
|
-
with:
|
|
43
|
-
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
44
|
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
45
|
-
|
|
46
|
-
- name: Extract Docker metadata
|
|
47
|
-
id: meta
|
|
48
|
-
uses: docker/metadata-action@v5
|
|
49
|
-
with:
|
|
50
|
-
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
|
|
51
|
-
tags: |
|
|
52
|
-
type=raw,value=latest,enable={{is_default_branch}}
|
|
53
|
-
type=sha,prefix=
|
|
54
|
-
|
|
55
|
-
- name: Build and push Docker image
|
|
56
|
-
uses: docker/build-push-action@v6
|
|
57
|
-
with:
|
|
58
|
-
context: .
|
|
59
|
-
push: true
|
|
60
|
-
tags: ${{ steps.meta.outputs.tags }}
|
|
61
|
-
labels: ${{ steps.meta.outputs.labels }}
|
|
62
|
-
cache-from: type=gha
|
|
63
|
-
cache-to: type=gha,mode=max
|
|
64
|
-
|
|
65
|
-
- name: Checkout helm repository
|
|
66
|
-
if: github.ref == 'refs/heads/stage'
|
|
67
|
-
uses: actions/checkout@v4
|
|
68
|
-
with:
|
|
69
|
-
repository: ${{ env.HELM_REPO }}
|
|
70
|
-
ssh-key: ${{ secrets.HELM_DEPLOY_KEY }}
|
|
71
|
-
path: helm-repo
|
|
72
|
-
ref: main
|
|
73
|
-
|
|
74
|
-
- name: Auto-update stage Helm values and commit
|
|
75
|
-
if: github.ref == 'refs/heads/stage'
|
|
76
|
-
working-directory: helm-repo
|
|
77
|
-
env:
|
|
78
|
-
IMAGE_TAG: ${{ env.IMAGE_TAG }}
|
|
79
|
-
run: |
|
|
80
|
-
git config user.name "github-actions[bot]"
|
|
81
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
82
|
-
YQ_VERSION=v4.30.8
|
|
83
|
-
curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -o /usr/local/bin/yq
|
|
84
|
-
chmod +x /usr/local/bin/yq
|
|
85
|
-
yq eval ".image.tag = strenv(IMAGE_TAG)" -i ${{ env.HELM_CHART }}/values-stage.yaml
|
|
86
|
-
git add ${{ env.HELM_CHART }}/values-stage.yaml
|
|
87
|
-
git commit -m "ci(${{ env.IMAGE_NAME }}): update stage image tag to $IMAGE_TAG" || echo "no changes to commit"
|
|
88
|
-
git push origin main || echo "push failed or no changes"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
name: Promote to Production
|
|
2
|
-
|
|
3
|
-
env:
|
|
4
|
-
IMAGE_NAME: theme-studio
|
|
5
|
-
HELM_REPO: Digital-Twin-Operations/helm-charts
|
|
6
|
-
HELM_CHART: theme-studio
|
|
7
|
-
|
|
8
|
-
on:
|
|
9
|
-
workflow_dispatch:
|
|
10
|
-
inputs:
|
|
11
|
-
image_tag:
|
|
12
|
-
description: Image tag to promote to production
|
|
13
|
-
required: true
|
|
14
|
-
default: latest
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
promote:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
environment: production
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- name: Checkout helm repository
|
|
23
|
-
uses: actions/checkout@v4
|
|
24
|
-
with:
|
|
25
|
-
repository: ${{ env.HELM_REPO }}
|
|
26
|
-
ssh-key: ${{ secrets.HELM_DEPLOY_KEY }}
|
|
27
|
-
ref: main
|
|
28
|
-
|
|
29
|
-
- name: Install yq
|
|
30
|
-
run: |
|
|
31
|
-
YQ_VERSION=v4.30.8
|
|
32
|
-
curl -sL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -o /usr/local/bin/yq
|
|
33
|
-
chmod +x /usr/local/bin/yq
|
|
34
|
-
yq --version
|
|
35
|
-
|
|
36
|
-
- name: Configure git
|
|
37
|
-
run: |
|
|
38
|
-
git config user.name "github-actions[bot]"
|
|
39
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
40
|
-
|
|
41
|
-
- name: Update production Helm values
|
|
42
|
-
env:
|
|
43
|
-
IMAGE_TAG: ${{ inputs.image_tag }}
|
|
44
|
-
run: |
|
|
45
|
-
yq eval ".image.tag = strenv(IMAGE_TAG)" -i ${{ env.HELM_CHART }}/values-prod.yaml
|
|
46
|
-
git add ${{ env.HELM_CHART }}/values-prod.yaml
|
|
47
|
-
git commit -m "chore(${{ env.IMAGE_NAME }}): promote image $IMAGE_TAG to production" || echo "no changes to commit"
|
|
48
|
-
git push origin HEAD:main
|
package/Dockerfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Build stage
|
|
2
|
-
FROM node:20-alpine AS build
|
|
3
|
-
|
|
4
|
-
WORKDIR /app
|
|
5
|
-
|
|
6
|
-
COPY package.json package-lock.json ./
|
|
7
|
-
RUN npm ci
|
|
8
|
-
|
|
9
|
-
COPY . .
|
|
10
|
-
RUN npm run build
|
|
11
|
-
|
|
12
|
-
# Production stage
|
|
13
|
-
FROM nginx:alpine AS production
|
|
14
|
-
|
|
15
|
-
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
16
|
-
COPY --from=build /app/dist /usr/share/nginx/html
|
|
17
|
-
|
|
18
|
-
EXPOSE 80
|
|
19
|
-
|
|
20
|
-
CMD ["nginx", "-g", "daemon off;"]
|