Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1108 commits
Select commit Hold shift + click to select a range
dbecf31
image widget multiple - do not use random path for images + bump up v…
Nov 19, 2025
2480a5d
filterFactory, add support for simple Filters + update deps + bump up…
Nov 20, 2025
7cfb13e
update deps + bump up version
Nov 22, 2025
8e0af25
add export + bump up version
Nov 22, 2025
7d801e8
update deps + bump up version
Nov 22, 2025
c1ff058
update tests config
Nov 22, 2025
c7f17e4
update deps + bump up version
Nov 26, 2025
f15b1b5
several dam upload changes / fixes + added logging
Nov 27, 2025
60cc697
update deps + bump up version
Nov 27, 2025
c8daee1
add export + bump up version
Nov 27, 2025
463c7e8
update deps
Nov 28, 2025
682c7bd
loadDamConfigAssetCustomFormElements now supports types parameter
Nov 28, 2025
b922aa3
bump up version
Nov 28, 2025
c9e37f7
add deprecated code for admin-dam support
Nov 28, 2025
d4a6240
temporaly fix
Nov 28, 2025
f58e445
lint fix
Nov 28, 2025
48ed731
bump up version
Nov 28, 2025
ea0d57e
bump up version + update dam type
Nov 28, 2025
ee08346
update deps
Dec 1, 2025
30ad126
Add approveRequestBlocked prop for ACollabManagement and emit approve…
Dec 2, 2025
03897e1
Merge pull request #209 from anzusystems/col_emit
marforon Dec 2, 2025
d1414b0
update deps + node@24 + typescript@5.9.3 + fix filter ext system
Dec 2, 2025
363d053
bump up version
Dec 2, 2025
9ba40f1
Merge remote-tracking branch 'origin/beta' into beta
Dec 2, 2025
50efab4
update deps + bump up version
Dec 5, 2025
8e26a89
fix filter bookmarks button + bump up version
Dec 5, 2025
56d3ec4
Update release workflow to handle beta package publishing and bump ve…
stankolubomir Dec 5, 2025
e11540e
bump version to 1.47.0-beta.334 and add repository metadata
stankolubomir Dec 5, 2025
7a92fba
AFilterWrapperSubjectSelect - add support for filter bookmarks + bump…
Dec 5, 2025
5585533
update deps
Dec 10, 2025
a6a7641
update deps + datetime picker component update
Dec 10, 2025
849e234
datetime picker component update
Dec 10, 2025
be8a9f2
datetime picker component update
Dec 10, 2025
b48407d
datetime picker component update
Dec 10, 2025
1ec5a92
datetime picker component update
Dec 10, 2025
d0046de
datetime picker component update
Dec 10, 2025
30f0886
update deps
Dec 10, 2025
23b7959
update deps
Dec 11, 2025
f5c7e73
fixes + bump up version
Dec 11, 2025
3ec0433
fixes + bump up version
Dec 11, 2025
55937ff
remove random from image helpers
Dec 12, 2025
89677bd
dam roi now using manipulatedAt instead of random
Dec 12, 2025
9680fc8
update deps + bump up version
Dec 12, 2025
1dbae99
turn on uploadStatusFallback for playground
Dec 12, 2025
00ec749
add 4th retry
Dec 12, 2025
0d25344
add error
Dec 12, 2025
53a58e0
bump up version
Dec 12, 2025
60cc26d
update deps
Dec 15, 2025
5ecc3b5
update deps + remove random from image paths + bump up version
Dec 15, 2025
d26fc95
update deps + bump up version
Dec 17, 2025
1391798
update deps + bump up version
Jan 7, 2026
edee345
update deps + bump up version
Jan 19, 2026
a7a4816
update deps + bump up version
Jan 20, 2026
3da3178
update deps
Jan 22, 2026
56acb07
update deps + bump up version
Jan 28, 2026
aba84ee
update deps + bump up version
Jan 28, 2026
681f19e
update deps + bump up version
Jan 30, 2026
1ef5b7d
update deps + bump up version
Jan 30, 2026
143004d
update deps + bump up version
Feb 3, 2026
0818768
update deps + bump up version
Feb 6, 2026
a244574
add missing vuetify translations + bump up version
Feb 6, 2026
e579d30
add missing vuetify translations + bump up version
Feb 6, 2026
ed7f188
update deps + bump up version
Feb 8, 2026
8db720a
update deps + bump up version
Feb 9, 2026
8c43c95
add fullscreen support to AProgress component
Feb 9, 2026
a65c319
update deps + bump up version + ASubjectSelect auto open prop
Feb 10, 2026
f335492
fix + bump up version
Feb 16, 2026
f66ef5d
Added internal and override internal (#210)
TomasHermanek Mar 3, 2026
239a618
Bump version to 1.47.0-beta.357
volarname Mar 3, 2026
389af36
set mainFile internal in upload and select
Mar 10, 2026
e5cc06f
New image widget + several changes (#212)
volarname Apr 15, 2026
a17aaaa
bump up beta version
Apr 15, 2026
b48d359
Add list editor components (flat, sortable, nested)
Apr 24, 2026
1114162
Align list-editor variants and polish edit/drag visuals
Apr 24, 2026
cc882b0
Simplify nested list-editor drag feedback
Apr 24, 2026
c46238c
Instruction-based nested drop indicator + reparent
Apr 24, 2026
b7c525f
Fix false "moved" flags + keep source row visible during drag
Apr 24, 2026
4b3bb9d
Align drop line with drag handle column + disable dragged subtree
Apr 24, 2026
4a90d92
Auto-expand make-child target after drop
Apr 24, 2026
c2a3f71
Pivot nested drop UX to pointer-X-for-depth outliner model
Apr 24, 2026
67c2b7a
Polish nested drop UX and rework moved tracking
Apr 24, 2026
6c993eb
Move reorder toolbar into header + nested actions polish
Apr 24, 2026
1688c89
Test coverage for list editors + fix reorder-mode header visibility
Apr 24, 2026
c67101f
Extract shared list-editor primitives (composables, components, styles)
Apr 24, 2026
068955c
Flatten list-editor styles to a shared .a-le-* class namespace
Apr 24, 2026
7ee5716
Move ANestedRow into internal/ and drop A prefix on internal components
Apr 24, 2026
a5bd02e
List-editor Phase 7: keyboard nav, reorder-menu dialogs, unsaved guard
Apr 27, 2026
7a0ff24
List-editor: per-item validation rail (F5)
Apr 27, 2026
32c1b4d
List-editor: closure polish + actions.update slot prop + d.ts cleanup
Apr 27, 2026
ad831bc
List-editor: shared reorder mode (embedded prop) + nested unsaved-key…
Apr 27, 2026
fb949e4
List-editor: rail-color tests + embedded add-button polish + playgrou…
Apr 28, 2026
3bc466c
List-editor: outer reorder toolbar aggregates embedded children's pen…
Apr 28, 2026
d3f47a4
List-editor: post-audit perf + refactor + API polish
Apr 28, 2026
525a876
List-editor: add 50 unit tests for new composables
Apr 28, 2026
bdd014f
update deps
Apr 28, 2026
6be4b4e
Feat/list editors (#213)
volarname Apr 28, 2026
c2791c1
bump up version
Apr 28, 2026
e6d3a03
Tests: stop committing vitest browser-mode screenshots
Apr 28, 2026
7b547e1
gitignore: broaden __screenshots__ pattern to match anywhere
Apr 28, 2026
23c8fe5
sentry: parametrize useSentry component label for consumer libraries
Apr 28, 2026
a13dc7e
Dep bumps + lint cleanup across list editors
May 4, 2026
34c520b
Merge branch 'feat/list-editors' of github.com:anzusystems/common-adm…
May 4, 2026
bbe3ffb
update deps + lint fixes
May 5, 2026
50c4e26
Merge branch 'beta' of github.com:anzusystems/common-admin into feat/…
May 5, 2026
4aed729
List-editor: view-body slot for consumer-rendered view mode
May 5, 2026
b7bfb0f
ImageWidgetMultiple: adopt ASortableListEditor via view-body slot
May 5, 2026
22ba229
Merge remote-tracking branch 'origin/feat/list-editors' into feat/lis…
May 5, 2026
1c056e9
List-editor: format card-grid playground + test to match new lint style
May 5, 2026
cc0e19b
Tests: pre-optimize VRadio, VRadioGroup, VBadge to fix CI flake
May 5, 2026
12dee7f
bump up version
May 5, 2026
060b383
Accept status code 202 in executeRequest (#215)
pulzarraider May 12, 2026
5e1ce5a
Merge remote-tracking branch 'origin/beta' into feat/list-editors
May 12, 2026
37f43fd
update deps
May 12, 2026
0e1d4e3
bump up version
May 12, 2026
4cb57a0
fix list-editor delete flow, dirty baseline, readonly inline, i18n label
May 13, 2026
a6127ec
update deps + bump version
May 13, 2026
815498b
fix useDirtyBaseline auto-rebaseline + bump version
May 14, 2026
f094e22
update deps
May 14, 2026
3eb4744
trim verbose comments + bump version
May 14, 2026
a94f0d7
fix lint: trim 2 over-120 comment lines
May 14, 2026
fcbf5a5
wip
May 15, 2026
300a68f
wip
May 15, 2026
183021e
wip
May 15, 2026
8752d7c
wip
May 16, 2026
ebada59
wip
May 18, 2026
75c158a
fix list-editor empty-header rail and addFirst label
May 18, 2026
6793990
wip
May 19, 2026
acfb322
add named sections to the unsaved-changes guard
May 20, 2026
f0bf973
wip
May 20, 2026
c5f2fc2
wip
May 22, 2026
784926e
wip
May 22, 2026
d107196
add disableUnsaved prop to list editors
May 23, 2026
8261a88
require explicit compactField/slot for list-editor row compact text
May 23, 2026
a877305
ASortableListEditor: show up/down move arrows in chip mode on touch d…
May 23, 2026
29a735c
ASortableListEditor: gate dragEnabled on canInteract
May 23, 2026
d44face
AListEditor: defaultExpanded prop + simplify empty state
May 23, 2026
00190fa
wip
May 23, 2026
4fb6d47
wip
May 23, 2026
7b1bb2f
wip
May 24, 2026
74fffbe
wip
May 24, 2026
d4a50ed
wip
May 24, 2026
eaf9050
fix(useCachedItem): keep reactivity alive on prop changes
May 25, 2026
dfc685d
wip
May 29, 2026
d470ed0
wip
May 29, 2026
2220810
wip
Jun 1, 2026
901c3c0
wip
Jun 1, 2026
c9c122e
wip
Jun 5, 2026
de3e563
wip
Jun 6, 2026
dcbc6ff
wip
Jun 10, 2026
3bd6521
wip
Jun 10, 2026
ef506c2
wip
Jun 11, 2026
2fc5a35
feat(labs): list editor extraction APIs — vuelidate sentinel, shared …
Jun 11, 2026
b34f8b3
feat(labs): sortByPosition util — shared non-mutating position orderi…
Jun 11, 2026
76c543f
fix(test): Array.from instead of NodeList spread — build test tsconfi…
Jun 11, 2026
91ee287
fix(labs): managed add/delete marks model write as non-fill — first i…
Jun 11, 2026
8c67281
fix(build): lint:tsc:test uses vue-tsc so .vue imports resolve
Jun 13, 2026
d0d424e
feat(labs): collapse inline editing on save + close add-after menu on…
Jun 13, 2026
794bd1b
feat: createCachedChip factory for cached-entity chips
Jun 13, 2026
05ae248
docs(labs): note manage-delete @deleted cleanup requirement on useNes…
Jun 13, 2026
ab710fb
test(labs): type createCachedChip stub props
Jun 13, 2026
f0b14e6
wip
Jun 13, 2026
6606637
wip
Jun 16, 2026
ec4b498
wip
Jun 17, 2026
30f0b12
wip
Jun 17, 2026
7991226
fix(labs): QA 85050 batch5 — list-editor dirty/validation/nested fixes
Jun 18, 2026
d914c4c
feat(labs): v2 list-editor controller/handle redesign
Jun 21, 2026
7dc4c4d
chore(deps): bump minor dependencies
Jun 21, 2026
c04043b
chore: bump dev version timestamp
Jun 21, 2026
1d8b90d
wip
Jun 24, 2026
28e3ac1
wip
Jun 24, 2026
0ddc2b0
fix(labs): catch failed remote resolves in form/filter autocompletes
Jun 24, 2026
4db04b4
wip
Jun 24, 2026
f487b0b
fix(labs): dirty-gate invalid rail, reorder-badge clear, embedded val…
Jun 25, 2026
54ae303
wip
Jun 25, 2026
257c6cd
test(labs): regression tests for QA 85050 list-editor bugs (U-03/04/0…
Jun 26, 2026
ccd24e8
wip
Jun 26, 2026
43449b1
wip
Jun 26, 2026
1b7cd89
wip
Jun 26, 2026
d26d90c
wip
Jul 1, 2026
b3b4a57
fix(labs): QA 85050 list-editor batch (nested tint, stable keys, inte…
Jul 2, 2026
c4b3911
wip
Jul 3, 2026
c484b6a
feat(labs): list-editor validation-scope — bridge editor validity int…
Jul 3, 2026
edd558c
wip
Jul 3, 2026
7a484c9
feat(labs): widen ListEditorValidationScope + nested validation-scope…
Jul 3, 2026
fb71255
wip
Jul 3, 2026
395f44d
wip
Jul 3, 2026
c49e6ba
wip
Jul 7, 2026
c50b630
wip
Jul 7, 2026
9d59750
feat(labs): QA 85050 batch 7 — reorder-add counting, unsaved-invalid …
Jul 7, 2026
ae147a3
wip
Jul 7, 2026
81239b0
fix(labs): QA85050 re-review fixes for list-editor + unsaved guard
Jul 9, 2026
db30ab6
fix(labs): amber the view-mode "N unconfirmed changes" header count (…
Jul 9, 2026
ddfde57
test(labs): lock the exposed-handle unwrap contract (QA85050 batch-8 …
Jul 9, 2026
77d7819
fix(test): correct ListEditorHandle import + cover function-ref handl…
Jul 9, 2026
1430143
feat(labs): add ExposedListEditorHandle — the unwrapped consumer view…
Jul 9, 2026
685c267
test(labs): fix false-passing list-editor tests (codex test review)
Jul 9, 2026
bba2fa3
test(labs): fill list-editor coverage gaps (codex test review — C8/C9…
Jul 9, 2026
9716b3f
test/labs: address final codex review of ExposedListEditorHandle + tests
Jul 9, 2026
9b52db3
test/labs: satisfy the no-Options-API + ref-reactivity lint on the li…
Jul 9, 2026
8aa96b0
chore(deps): routine dev dependency bumps
Jul 9, 2026
8569aed
feat(labs): ListEditorStateScope — nested editors keep their state ac…
Jul 13, 2026
938f5c9
wip
Jul 13, 2026
7ccadc0
fix
Jul 13, 2026
587398d
wip
Jul 14, 2026
a5592b4
wip
Jul 14, 2026
7754f63
feat(labs): opt-in preserve-values position strategy + stop mount-tim…
Jul 17, 2026
7a57f6d
wip
Jul 17, 2026
6c26ef0
wip
Jul 17, 2026
9ba23b3
test(labs): replace vacuous list-editor assertions with mutation-prov…
Jul 17, 2026
5b68872
wip
Jul 17, 2026
cb9da22
wip
Jul 18, 2026
904403c
wip
Jul 21, 2026
0940470
wip
Jul 21, 2026
3e4a7f5
wip
Jul 21, 2026
8d87197
fix(form): never emit null from non-clearable AFormValueObjectOptions…
Jul 22, 2026
4055799
chore: bump dev version for non-clearable select null fix
Jul 22, 2026
0145706
bump up versions
Jul 26, 2026
ce775bd
fix(labs): keep the drag handle on touch-capable devices that can act…
Jul 27, 2026
5115a8a
fix(error): give Anzu error classes a non-empty message
Jul 27, 2026
db708ba
fix(api): handle timeout and axios errors in legacy apiFetchByIds
Jul 27, 2026
f8706b3
fix(cached): stop resending failed batches and hanging spinners
Jul 27, 2026
76b7c9b
fix(collab): only report permanent connection rejections
Jul 27, 2026
8c41cab
fix(dam): keep loaded custom forms when one asset type fails
Jul 27, 2026
302ac2e
chore: bump dev version for sentry error handling fixes
Jul 27, 2026
33b083c
fix(i18n): translate the API timeout message to Slovak and Czech
Jul 27, 2026
2c7356e
fix(cached): do not overcount re-queued ids when pruning
Jul 27, 2026
4ade628
fix(cached): catch the failed fetch inside the debounced callback
Jul 27, 2026
1cb4080
chore: bump dev version for cached fetch and i18n fixes
Jul 27, 2026
263c4d8
fix(collab): order the room info writes and let a leave be awaited
Aug 5, 2026
baccc4f
update deps
Aug 5, 2026
5075606
bump up version
Aug 5, 2026
c2d6f10
wip
Aug 5, 2026
23a5a2e
refs #86220 cut the comments back to what the code does not say
Aug 5, 2026
d75a9d0
fix(collab): drop remembered field locks when entering a room
Aug 5, 2026
af4dd7a
bump up version
Aug 5, 2026
9b97689
fix(labs): dark-theme selected-filter chips, EN filter placeholders, …
Aug 7, 2026
3a7dff4
wip
Aug 7, 2026
a516713
fix(datetime): apply the first calendar day click
Aug 10, 2026
8ff1744
chore(deps): bump dev dependencies and version to 1784059875
Aug 10, 2026
39e0d1c
fix(collab): keep room info write claims across the socket connect
Aug 10, 2026
2ba3d53
fix(build): keep tests out of the declaration build
Aug 10, 2026
e291bc1
chore(deps): bump oxlint and version to 1784059876
Aug 10, 2026
2ba0932
wip
Aug 17, 2026
4ff8cd4
update deps
Aug 28, 2026
c0e848b
bump up version
Aug 28, 2026
9082be4
fix(list-editor, image widget): reordering, phantom unsaved count and…
Aug 31, 2026
fcf54df
chore(copy.sh): support multiple target projects and clear the stale …
Aug 31, 2026
9d33777
chore(deps): bump @sentry/vue and postcss-prefix-selector
Aug 31, 2026
9f26b68
fix(form): let a real null option through AFormValueObjectOptionsSelect
Sep 10, 2026
a681d1a
chore: merge main into 1.47.0-beta.dev-1784059879-fix1
Sep 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 0 additions & 57 deletions .eslintrc.cjs

This file was deleted.

53 changes: 52 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ on:
permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
lint:
strategy:
matrix:
node-version:
- '20'
- '24'
platform:
- ubuntu-latest

Expand Down Expand Up @@ -44,3 +47,51 @@ jobs:

- name: Run Security check
run: yarn npm audit

test:
strategy:
matrix:
node-version:
- '24'
platform:
- ubuntu-latest

name: Test
runs-on: ${{ matrix.platform }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Install dependencies
run: yarn install --immutable

- name: Get Playwright version
id: playwright-version
run: echo "version=$(node -p "require('playwright/package.json').version")" >> $GITHUB_OUTPUT

- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-chromium-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}-${{ hashFiles('yarn.lock') }}

- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install chromium --with-deps

- name: Run tests
run: yarn test:run
env:
CI: true
45 changes: 39 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,67 @@ name: Node.js Package Release
on:
release:
types: [created]
push:
branches:
- beta

permissions:
contents: read
id-token: write

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
build-publish-pkg:
name: Build and push package on node 20
name: Build and push package on node 24
runs-on: 'ubuntu-latest'
environment: npmjs-publish
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Check version change (beta only)
id: check
if: github.event_name == 'push'
uses: EndBug/version-check@v2
with:
diff-search: true

- name: Enable corepack
if: github.event_name == 'release' || (steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta'))
run: corepack enable

- name: Setup Node
if: github.event_name == 'release' || (steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta'))
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'

- name: Install dependencies
if: github.event_name == 'release' || (steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta'))
run: yarn install --immutable
env:
SKIP_PLAYWRIGHT_INSTALL: true

- name: Run Yarn Build
if: github.event_name == 'release' || (steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta'))
run: yarn lib:build

- name: Publish package to npmjs
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
if: github.event_name == 'release'
run: |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
npm publish --access public --tag beta
else
npm publish --access public
fi

- name: Publish beta package to npmjs
if: github.event_name == 'push' && steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: |
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
npm publish --access public
npm publish --tag beta
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
todo
dist
dist-ssr
*.local
Expand All @@ -25,3 +26,7 @@ dist-ssr
*.njsproj
*.sln
*.sw?

.playwright-cli
.vitest-attachments
todo
5 changes: 5 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"semi": false,
"singleQuote": true
}
10 changes: 10 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "vue"],
"env": { "browser": true },
"categories": { "correctness": "error" },
"rules": {
"no-unused-vars": ["error", { "caughtErrors": "none", "argsIgnorePattern": "^_" }],
"no-unused-expressions": "off"
}
}
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = {
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"scss/double-slash-comment-whitespace-inside": null,
"color-function-notation": ["modern", { "ignore": ["with-var-inside"] }],
"declaration-property-value-no-unknown": null,
},
}
7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
approvedGitRepositories:
- "**"

compressionLevel: mixed

enableGlobalCache: false

enableScripts: true

nodeLinker: node-modules

npmMinimalAgeGate: 0
83 changes: 68 additions & 15 deletions copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,85 @@ else
exit 1
fi

# Target projects can be defined as:
# ADMIN_PROJECT=/path/to/admin-cms
# ADMIN_PROJECT=/path/to/admin-cms:/path/to/admin-ugc (colon separated)
# ADMIN_PROJECTS=("/path/to/admin-cms" "/path/to/admin-ugc") (bash array)
TARGETS=()

if [[ -n "${ADMIN_PROJECTS+x}" ]]; then
TARGETS+=("${ADMIN_PROJECTS[@]}")
fi

if [[ -n "${ADMIN_PROJECT+x}" ]]; then
if [[ "$(declare -p ADMIN_PROJECT 2>/dev/null)" == "declare -a"* ]]; then
TARGETS+=("${ADMIN_PROJECT[@]}")
else
IFS=':' read -r -a SPLIT_TARGETS <<< "${ADMIN_PROJECT}"
TARGETS+=("${SPLIT_TARGETS[@]}")
fi
fi

# Drop empty entries (e.g. trailing colon)
FILTERED_TARGETS=()
for target in "${TARGETS[@]}"; do
[[ -n "${target}" ]] && FILTERED_TARGETS+=("${target}")
done
TARGETS=("${FILTERED_TARGETS[@]}")

# Ensure that paths are set in the sourced file
if [[ -z "$COMMON_ADMIN_PROJECT" || -z "$ADMIN_PROJECT" ]]; then
if [[ -z "${COMMON_ADMIN_PROJECT}" || ${#TARGETS[@]} -eq 0 ]]; then
echo "Error: Paths not defined in the sourced file."
exit 1
fi

# Check if directories exist
if [[ ! -d "${COMMON_ADMIN_PROJECT}" || ! -d "${ADMIN_PROJECT}" ]]; then
echo "Error: One or both of the specified directories do not exist."
# Check if source directory exists
if [[ ! -d "${COMMON_ADMIN_PROJECT}" ]]; then
echo "Error: Source directory ${COMMON_ADMIN_PROJECT} does not exist."
exit 1
fi

# Create directories before copying files
mkdir -p "${ADMIN_PROJECT}/node_modules/@anzusystems/common-admin/"
mkdir -p "${ADMIN_PROJECT}/node_modules/@anzusystems/common-admin/dist"
if [[ ! -d "${COMMON_ADMIN_PROJECT}/dist" ]]; then
echo "Error: dist not found in ${COMMON_ADMIN_PROJECT}. Build it first."
exit 1
fi

# Copy package.json from COMMON_ADMIN_PROJECT to ADMIN_PROJECT
if [[ -f "${COMMON_ADMIN_PROJECT}/package.json" ]]; then
cp "${COMMON_ADMIN_PROJECT}/package.json" "${ADMIN_PROJECT}/node_modules/@anzusystems/common-admin/"
else
if [[ ! -f "${COMMON_ADMIN_PROJECT}/package.json" ]]; then
echo "Error: package.json not found in ${COMMON_ADMIN_PROJECT}."
exit 1
fi

# Create dist directory before copying files
mkdir -p "${ADMIN_PROJECT}/node_modules/@anzusystems/common-admin/dist"
# Check if all target directories exist before copying anything
MISSING=0
for target in "${TARGETS[@]}"; do
if [[ ! -d "${target}" ]]; then
echo "Error: Target directory ${target} does not exist."
MISSING=1
fi
done
[[ ${MISSING} -eq 1 ]] && exit 1

for target in "${TARGETS[@]}"; do
PACKAGE_DIR="${target}/node_modules/@anzusystems/common-admin"

# Wipe the previous dist first. `cp -r` only overwrites; it never removes, so chunks whose
# content hash changed piled up as orphans and the package ended up holding several builds at
# once. Scoped to this package's own dist directory, nothing else in node_modules is touched.
rm -rf "${PACKAGE_DIR}/dist"

# Create directories before copying files
mkdir -p "${PACKAGE_DIR}/dist"

# Copy package.json from COMMON_ADMIN_PROJECT to the target project
cp "${COMMON_ADMIN_PROJECT}/package.json" "${PACKAGE_DIR}/"

cp -r "${COMMON_ADMIN_PROJECT}/dist/"* "${PACKAGE_DIR}/dist/"

# Clear Vite's dependency pre-bundle cache so it picks up the new files
rm -rf "${target}/node_modules/.vite/deps/"

# Touch trigger file so Vite plugin detects the update and does a full-reload
touch "${target}/.common-admin-updated"

# Use paths from sourced file
cp -r "${COMMON_ADMIN_PROJECT}/dist/"* "${ADMIN_PROJECT}/node_modules/@anzusystems/common-admin/dist/"
echo "Successfully copied release from ${COMMON_ADMIN_PROJECT}/dist to ${PACKAGE_DIR}/dist"
done
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
})
},
// @ts-ignore
enhanceApp({ app, router, siteData }) {
enhanceApp({ app, _router, _siteData }) {
// ...
app.use(i18n)
app.use(vuetify)
Expand Down
4 changes: 3 additions & 1 deletion docs/styleguide/views/viewsDemoData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { reactive, ref } from 'vue'
// @ts-ignore
import { makeFilterHelper } from '@/composables/filter/filterHelpers'
// @ts-ignore
import type { Pagination } from '@/types/Pagination'
// @ts-ignore
import type { FilterBag } from '@/types/Filter'
// @ts-ignore
import { useAlerts } from '@/composables/system/alerts'
Expand Down Expand Up @@ -120,7 +122,7 @@ export function useLogSystem() {
}
}

export const fetchSiteList = (pagination: Pagination, filterBag: FilterBag) => {
export const fetchSiteList = (_pagination: Pagination, _filterBag: FilterBag) => {
return Promise.resolve([])
}

Expand Down
Loading
Loading