@vixoniccom/menu-daily 0.1.2-dev.1 → 0.2.0-dev.1
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/.claude/settings.local.json +31 -0
- package/.github/workflows/npm-publish.yml +103 -0
- package/.github/workflows/sonarqube.yml +30 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +21 -0
- package/build/index.html +1 -0
- package/build/main.js +2 -0
- package/build/main.js.LICENSE.txt +39 -0
- package/build/test/downloads/1234.ttf +0 -0
- package/build/test/downloads/background.jpg +0 -0
- package/build/test/downloads/futura-font.ttf +0 -0
- package/build/test/parameters.json +38 -0
- package/build/test/services.json +871 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/AppearanceInputs.ts +94 -0
- package/configuration/appearanceGroup/index.ts +8 -0
- package/configuration/dataGroup/DataInputs.ts +21 -0
- package/configuration/dataGroup/index.ts +8 -0
- package/configuration/index.ts +7 -0
- package/configuration.json +43 -78
- package/package.json +13 -12
- package/sonar-project.properties +1 -0
- package/src/global.d.ts +15 -51
- package/src/index.html +33 -33
- package/src/logger.ts +2 -2
- package/src/main.ts +8 -13
- package/src/parameters.d.ts +31 -0
- package/src/scenes/App.tsx +25 -38
- package/src/scenes/components/FontLoader.tsx +3 -16
- package/src/scenes/components/FormattedText.tsx +3 -4
- package/src/scenes/components/Grid/Grid.tsx +8 -8
- package/src/scenes/components/Grid/GridItem.tsx +1 -0
- package/src/scenes/components/Grid/animation.ts +69 -55
- package/src/scenes/components/MealContainer/components/OptionItem.tsx +1 -2
- package/src/scenes/components/MealContainer/components/Title/index.tsx +17 -20
- package/src/scenes/components/MealContainer/components/Title/styles/Framed.tsx +19 -28
- package/src/scenes/components/MealContainer/components/Title/styles/Modern.tsx +15 -24
- package/src/scenes/components/MealContainer/components/Title/styles/index.tsx +25 -1
- package/src/scenes/components/MealContainer/index.tsx +31 -31
- package/src/test/parameters.json +7 -5
- package/src/test/services.json +871 -0
- package/tsconfig.json +9 -17
- package/src/dataLoader.ts +0 -169
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(find /home/danielalvayail/repos/server-ruffo -type f -name \"package.json\" -o -name \"tsconfig.json\" -o -name \".gitmodules\" | head -20)",
|
|
5
|
+
"Read(//home/danielalvayail/repos/server-ruffo/**)",
|
|
6
|
+
"Bash(grep -n \"insertAgendaApp\\\\|insertBirthdayApp\\\\|insertSheetsReader\\\\|insertLocalAppSheets\\\\|__resolveType\\\\|AgendaAppService\\\\|implements Service\\\\|gql\\\\`\" src/schema/modules/services/index.ts)",
|
|
7
|
+
"Bash(npx tsc *)",
|
|
8
|
+
"Bash(echo \"exit=$? \\(vacío = sin errores en esos archivos relativos a MenuAppService\\)\")",
|
|
9
|
+
"Bash(echo \"exit=$? \\(vacío = sin errores que mencionen Menu/MenuApp\\)\")",
|
|
10
|
+
"Bash(xargs ls -lh)",
|
|
11
|
+
"Bash(echo \"exit=$? \\(vacío = sin errores que mencionen MenuApp/MenuAppForm\\)\")",
|
|
12
|
+
"Bash(echo \"exit=$? \\(vacío = sin errores en esos archivos\\)\")",
|
|
13
|
+
"Bash(node -e \"JSON.parse\\(require\\('fs'\\).readFileSync\\('src/i18n/locales/es.json','utf8'\\)\\); console.log\\('es.json OK'\\)\")",
|
|
14
|
+
"Bash(python3 -c \"import json; json.load\\(open\\('src/i18n/locales/es.json'\\)\\); print\\('es.json OK'\\)\")",
|
|
15
|
+
"Bash(find /home/danielalvayail/repos/apps/store-birthdays -type f \\\\\\( -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.json\" -o -name \"*.d.ts\" \\\\\\) | head -30)",
|
|
16
|
+
"Read(//home/danielalvayail/repos/apps/store-birthdays/**)",
|
|
17
|
+
"Bash(python3 -c \"import json; d=json.load\\(open\\('src/test/services.json'\\)\\); k=list\\(d['services']\\)[0]; print\\('services.json OK — id:', k\\); print\\('hojas:', list\\(d['services'][k]['data']['menus']\\)\\)\")",
|
|
18
|
+
"Bash(python3 -c \"import json; p=json.load\\(open\\('src/test/parameters.json'\\)\\); print\\('parameters menuService.id:', p['parameters']['menuService']['id']\\)\")",
|
|
19
|
+
"Bash(python3 -c \"import json; d=json.load\\(open\\('src/test/services.json'\\)\\); print\\('services.json OK, primer date AMANECIDA:', d['services']['38c3df7c-fb9e-e5a5-489a-d6e31048c2d3']['data']['menus']['AMANECIDA'][0]['date']\\)\")",
|
|
20
|
+
"Read(//home/danielalvayail/.nvm/versions/node/**)",
|
|
21
|
+
"Bash(command -v nodejs)",
|
|
22
|
+
"Bash(node -e \"const r=require\\('./node_modules/react'\\); console.log\\('SFC=',typeof r.SFC,'StatelessComponent=',typeof r.StatelessComponent\\)\")",
|
|
23
|
+
"Bash(git add *)",
|
|
24
|
+
"Bash(git commit -m ' *)",
|
|
25
|
+
"Bash(git push *)",
|
|
26
|
+
"Bash(command -v nvm)",
|
|
27
|
+
"Read(//usr/local/bin/**)",
|
|
28
|
+
"Bash(bash -lc 'which node')"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- master
|
|
11
|
+
- main
|
|
12
|
+
types: [closed]
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
publish:
|
|
16
|
+
# Solo ejecutar si es un push a main/master o un merge a main/master
|
|
17
|
+
if: github.event_name == 'push' || (github.event.pull_request.merged == true && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main'))
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout code
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: Setup Node.js 20
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: '20'
|
|
30
|
+
registry-url: 'https://registry.npmjs.org'
|
|
31
|
+
scope: '@vixoniccom'
|
|
32
|
+
|
|
33
|
+
- name: Configure npm authentication
|
|
34
|
+
run: |
|
|
35
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
36
|
+
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
37
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
38
|
+
|
|
39
|
+
- name: Cache node modules
|
|
40
|
+
uses: actions/cache@v4
|
|
41
|
+
with:
|
|
42
|
+
path: ~/.npm
|
|
43
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
44
|
+
restore-keys: |
|
|
45
|
+
${{ runner.os }}-node-
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: npm ci
|
|
49
|
+
env:
|
|
50
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
51
|
+
|
|
52
|
+
- name: Build package
|
|
53
|
+
run: npm run prepublish
|
|
54
|
+
env:
|
|
55
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
56
|
+
|
|
57
|
+
- name: Verify build.zip exists
|
|
58
|
+
run: |
|
|
59
|
+
if [ ! -f "build.zip" ]; then
|
|
60
|
+
echo "❌ Error: build.zip not found after build process"
|
|
61
|
+
exit 1
|
|
62
|
+
fi
|
|
63
|
+
echo "✅ build.zip found successfully"
|
|
64
|
+
ls -la build.zip
|
|
65
|
+
|
|
66
|
+
- name: Check if version already exists on npm
|
|
67
|
+
id: check-version
|
|
68
|
+
run: |
|
|
69
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
70
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
71
|
+
|
|
72
|
+
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
73
|
+
|
|
74
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
75
|
+
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
76
|
+
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
77
|
+
else
|
|
78
|
+
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
79
|
+
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
- name: Publish to npm
|
|
83
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
84
|
+
run: |
|
|
85
|
+
echo "Publishing to npm..."
|
|
86
|
+
npm publish --access public
|
|
87
|
+
env:
|
|
88
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
89
|
+
|
|
90
|
+
- name: Publication success
|
|
91
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
92
|
+
run: |
|
|
93
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
94
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
95
|
+
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
96
|
+
echo "📦 Package includes build.zip with the compiled application"
|
|
97
|
+
|
|
98
|
+
- name: Skip publication
|
|
99
|
+
if: steps.check-version.outputs.version-exists == 'true'
|
|
100
|
+
run: |
|
|
101
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
102
|
+
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
103
|
+
echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Sonarqube Analysis
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, synchronize, reopened]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
sonarqube:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
# Disabling shallow clone is recommended for improving relevancy of reporting.
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: SonarQube Scan
|
|
20
|
+
uses: sonarsource/sonarqube-scan-action@master
|
|
21
|
+
env:
|
|
22
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
23
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
24
|
+
|
|
25
|
+
- name: SonarQube Quality Gate Check
|
|
26
|
+
uses: sonarsource/sonarqube-quality-gate-action@master
|
|
27
|
+
timeout-minutes: 5
|
|
28
|
+
env:
|
|
29
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
30
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.2.0-dev.1](https://github.com/Vixonic/store-menu-daily/compare/v0.2.0-dev.0...v0.2.0-dev.1) (2026-06-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add CI workflows and replace deprecated ReactDOM.render ([6a2657b](https://github.com/Vixonic/store-menu-daily/commit/6a2657b8092c1d819c0e31a1bef117ad041017a1))
|
|
11
|
+
|
|
12
|
+
## [0.2.0-dev.0](https://github.com/Vixonic/store-menu-daily/compare/v0.1.2-dev.1...v0.2.0-dev.0) (2026-06-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* the "url" and "pollingInterval" parameters are removed;
|
|
18
|
+
the module now requires a MenuAppService configured via service-input.
|
|
19
|
+
|
|
20
|
+
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* consume MenuAppService instead of parsing the Excel locally ([d1781a2](https://github.com/Vixonic/store-menu-daily/commit/d1781a2499ac9032faf92485f1513cae25e9284a))
|
|
25
|
+
|
|
5
26
|
### [0.1.2-dev.1](https://bitbucket.org/vixonic_dev/menu-daily/compare/v0.1.2-dev.0...v0.1.2-dev.1) (2025-02-13)
|
|
6
27
|
|
|
7
28
|
|
package/build/index.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><title></title><meta charset="utf-8"/><style>@font-face{font-family:FrutigerLTStdBoldCn;src:url('./static/fonts/FrutigerLTStdBoldCn.ttf')}@font-face{font-family:FrutigerLTStdCn;src:url('./static/fonts/FrutigerLTStdCn.otf')}@font-face{font-family:FrutigerLTStdBlackCn;src:url('./static/fonts/FrutigerLTStdBlackCn.ttf')}@font-face{font-family:FrutigerLTStdLightCn;src:url('./static/fonts/FrutigerLTStdLightCn.ttf')}</style></head><body><div id="root" style="position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden"></div><script src="./main.js"></script></body></html>
|