adtec-core-package 3.1.9 → 3.2.0
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/.idea/codeStyles/Project.xml +61 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea//345/211/215/347/253/257/346/240/270/345/277/203/345/214/205.iml +8 -0
- package/package.json +1 -1
- package/src/assets/style/index.less +30 -42
- package/src/assets/style/scrollbar-classic.less +105 -0
- package/src/assets/style/scrollbar-classic.scss +105 -0
- package/src/components/ElCardList.vue +7 -1
- package/src/components/Scrollbars/ElScrollbars.vue +10 -2
- package/src/components/editor-main/src/assets/styles/_variables.less +1 -1
- package/src/components/upload/DocxJsViewer.vue +2 -16
- package/src/components/upload/OfficePreview.vue +8 -0
- package/src/config/VxeTableConfig.ts +2 -2
- package/src/css/elementUI/common/var.scss +4 -4
- package/src/css/elementUI/mixins/mixins.scss +4 -28
- package/src/css/elementUI/scrollbar.scss +20 -5
- package/src/css/vxeTableUI/components/table.scss +22 -29
- package/src/utils/excelPreviewUtil.ts +5 -5
- package/src/utils/officePreviewUtil.ts +5 -16
- package/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +0 -83
- package/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
- package/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
- package/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
- package/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
- package/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
- package/.editorconfig +0 -6
- package/.prettierrc.json +0 -7
- package/.vscode/extensions.json +0 -8
- package/AGENTS.md +0 -43
- package/CLAUDE.md +0 -43
- package/adtec-core-package/adtec-core-package.css +0 -1
- package/adtec-core-package/adtec-core-package.js +0 -41216
- package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
- package/adtec-core-package/favicon.ico +0 -0
- package/adtec-core-package-3.1.7.tgz +0 -0
- package/auto-imports.d.ts +0 -299
- package/env.d.ts +0 -1
- package/eslint.config.js +0 -56
- package/index.html +0 -13
- package/package/.editorconfig +0 -6
- package/package/adtec-core-package/adtec-core-package.css +0 -1
- package/package/adtec-core-package/adtec-core-package.js +0 -41216
- package/package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
- package/package/adtec-core-package/favicon.ico +0 -0
- package/package/index.html +0 -13
- package/package/prebuilt/umo-editor/favicon.ico +0 -0
- package/package/prebuilt/umo-editor/umo-editor.css +0 -1
- package/package/public/favicon.ico +0 -0
- package/package/src/assets/base.css +0 -86
- package/package/src/assets/main.css +0 -35
- package/package/src/components/editor-main/src/extensions/bookmark.js +0 -110
- package/prebuilt/umo-editor/umo-editor.js.map +0 -1
- package/tsconfig.app.json +0 -12
- package/tsconfig.json +0 -11
- package/tsconfig.node.json +0 -18
- package/vite.config.ts +0 -46
- package/vite.config.umo.ts +0 -81
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gitnexus-refactoring
|
|
3
|
-
description: "Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \"Rename this function\", \"Extract this into a module\", \"Refactor this class\", \"Move this to a separate file\""
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Refactoring with GitNexus
|
|
7
|
-
|
|
8
|
-
## When to Use
|
|
9
|
-
|
|
10
|
-
- "Rename this function safely"
|
|
11
|
-
- "Extract this into a module"
|
|
12
|
-
- "Split this service"
|
|
13
|
-
- "Move this to a new file"
|
|
14
|
-
- Any task involving renaming, extracting, splitting, or restructuring code
|
|
15
|
-
|
|
16
|
-
## Workflow
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
1. gitnexus_impact({target: "X", direction: "upstream"}) → Map all dependents
|
|
20
|
-
2. gitnexus_query({query: "X"}) → Find execution flows involving X
|
|
21
|
-
3. gitnexus_context({name: "X"}) → See all incoming/outgoing refs
|
|
22
|
-
4. Plan update order: interfaces → implementations → callers → tests
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
> If "Index is stale" → run `npx gitnexus analyze` in terminal.
|
|
26
|
-
|
|
27
|
-
## Checklists
|
|
28
|
-
|
|
29
|
-
### Rename Symbol
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
- [ ] gitnexus_rename({symbol_name: "oldName", new_name: "newName", dry_run: true}) — preview all edits
|
|
33
|
-
- [ ] Review graph edits (high confidence) and ast_search edits (review carefully)
|
|
34
|
-
- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits
|
|
35
|
-
- [ ] gitnexus_detect_changes() — verify only expected files changed
|
|
36
|
-
- [ ] Run tests for affected processes
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Extract Module
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
- [ ] gitnexus_context({name: target}) — see all incoming/outgoing refs
|
|
43
|
-
- [ ] gitnexus_impact({target, direction: "upstream"}) — find all external callers
|
|
44
|
-
- [ ] Define new module interface
|
|
45
|
-
- [ ] Extract code, update imports
|
|
46
|
-
- [ ] gitnexus_detect_changes() — verify affected scope
|
|
47
|
-
- [ ] Run tests for affected processes
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Split Function/Service
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
- [ ] gitnexus_context({name: target}) — understand all callees
|
|
54
|
-
- [ ] Group callees by responsibility
|
|
55
|
-
- [ ] gitnexus_impact({target, direction: "upstream"}) — map callers to update
|
|
56
|
-
- [ ] Create new functions/services
|
|
57
|
-
- [ ] Update callers
|
|
58
|
-
- [ ] gitnexus_detect_changes() — verify affected scope
|
|
59
|
-
- [ ] Run tests for affected processes
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Tools
|
|
63
|
-
|
|
64
|
-
**gitnexus_rename** — automated multi-file rename:
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
|
|
68
|
-
→ 12 edits across 8 files
|
|
69
|
-
→ 10 graph edits (high confidence), 2 ast_search edits (review)
|
|
70
|
-
→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**gitnexus_impact** — map all dependents first:
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
gitnexus_impact({target: "validateUser", direction: "upstream"})
|
|
77
|
-
→ d=1: loginHandler, apiMiddleware, testUtils
|
|
78
|
-
→ Affected Processes: LoginFlow, TokenRefresh
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**gitnexus_detect_changes** — verify your changes after refactoring:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
gitnexus_detect_changes({scope: "all"})
|
|
85
|
-
→ Changed: 8 files, 12 symbols
|
|
86
|
-
→ Affected processes: LoginFlow, TokenRefresh
|
|
87
|
-
→ Risk: MEDIUM
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**gitnexus_cypher** — custom reference queries:
|
|
91
|
-
|
|
92
|
-
```cypher
|
|
93
|
-
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "validateUser"})
|
|
94
|
-
RETURN caller.name, caller.filePath ORDER BY caller.filePath
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Risk Rules
|
|
98
|
-
|
|
99
|
-
| Risk Factor | Mitigation |
|
|
100
|
-
| ------------------- | ----------------------------------------- |
|
|
101
|
-
| Many callers (>5) | Use gitnexus_rename for automated updates |
|
|
102
|
-
| Cross-area refs | Use detect_changes after to verify scope |
|
|
103
|
-
| String/dynamic refs | gitnexus_query to find them |
|
|
104
|
-
| External/public API | Version and deprecate properly |
|
|
105
|
-
|
|
106
|
-
## Example: Rename `validateUser` to `authenticateUser`
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
1. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
|
|
110
|
-
→ 12 edits: 10 graph (safe), 2 ast_search (review)
|
|
111
|
-
→ Files: validator.ts, login.ts, middleware.ts, config.json...
|
|
112
|
-
|
|
113
|
-
2. Review ast_search edits (config.json: dynamic reference!)
|
|
114
|
-
|
|
115
|
-
3. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: false})
|
|
116
|
-
→ Applied 12 edits across 8 files
|
|
117
|
-
|
|
118
|
-
4. gitnexus_detect_changes({scope: "all"})
|
|
119
|
-
→ Affected: LoginFlow, TokenRefresh
|
|
120
|
-
→ Risk: MEDIUM — run tests for these flows
|
|
121
|
-
```
|
package/.editorconfig
DELETED
package/.prettierrc.json
DELETED
package/.vscode/extensions.json
DELETED
package/AGENTS.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!-- gitnexus:start -->
|
|
2
|
-
# GitNexus — Code Intelligence
|
|
3
|
-
|
|
4
|
-
This project is indexed by GitNexus as **adtec-front-end-core-package** (6236 symbols, 9088 relationships, 154 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
|
|
5
|
-
|
|
6
|
-
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
|
|
7
|
-
|
|
8
|
-
## Always Do
|
|
9
|
-
|
|
10
|
-
- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
|
|
11
|
-
- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
|
|
12
|
-
- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
|
|
13
|
-
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
|
|
14
|
-
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.
|
|
15
|
-
|
|
16
|
-
## Never Do
|
|
17
|
-
|
|
18
|
-
- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
|
|
19
|
-
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
|
|
20
|
-
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
|
|
21
|
-
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.
|
|
22
|
-
|
|
23
|
-
## Resources
|
|
24
|
-
|
|
25
|
-
| Resource | Use for |
|
|
26
|
-
|----------|---------|
|
|
27
|
-
| `gitnexus://repo/adtec-front-end-core-package/context` | Codebase overview, check index freshness |
|
|
28
|
-
| `gitnexus://repo/adtec-front-end-core-package/clusters` | All functional areas |
|
|
29
|
-
| `gitnexus://repo/adtec-front-end-core-package/processes` | All execution flows |
|
|
30
|
-
| `gitnexus://repo/adtec-front-end-core-package/process/{name}` | Step-by-step execution trace |
|
|
31
|
-
|
|
32
|
-
## CLI
|
|
33
|
-
|
|
34
|
-
| Task | Read this skill file |
|
|
35
|
-
|------|---------------------|
|
|
36
|
-
| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` |
|
|
37
|
-
| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` |
|
|
38
|
-
| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` |
|
|
39
|
-
| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` |
|
|
40
|
-
| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` |
|
|
41
|
-
| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` |
|
|
42
|
-
|
|
43
|
-
<!-- gitnexus:end -->
|
package/CLAUDE.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!-- gitnexus:start -->
|
|
2
|
-
# GitNexus — Code Intelligence
|
|
3
|
-
|
|
4
|
-
This project is indexed by GitNexus as **adtec-front-end-core-package** (6236 symbols, 9088 relationships, 154 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
|
|
5
|
-
|
|
6
|
-
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
|
|
7
|
-
|
|
8
|
-
## Always Do
|
|
9
|
-
|
|
10
|
-
- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
|
|
11
|
-
- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
|
|
12
|
-
- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
|
|
13
|
-
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
|
|
14
|
-
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.
|
|
15
|
-
|
|
16
|
-
## Never Do
|
|
17
|
-
|
|
18
|
-
- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
|
|
19
|
-
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
|
|
20
|
-
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
|
|
21
|
-
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.
|
|
22
|
-
|
|
23
|
-
## Resources
|
|
24
|
-
|
|
25
|
-
| Resource | Use for |
|
|
26
|
-
|----------|---------|
|
|
27
|
-
| `gitnexus://repo/adtec-front-end-core-package/context` | Codebase overview, check index freshness |
|
|
28
|
-
| `gitnexus://repo/adtec-front-end-core-package/clusters` | All functional areas |
|
|
29
|
-
| `gitnexus://repo/adtec-front-end-core-package/processes` | All execution flows |
|
|
30
|
-
| `gitnexus://repo/adtec-front-end-core-package/process/{name}` | Step-by-step execution trace |
|
|
31
|
-
|
|
32
|
-
## CLI
|
|
33
|
-
|
|
34
|
-
| Task | Read this skill file |
|
|
35
|
-
|------|---------------------|
|
|
36
|
-
| Understand architecture / "How does X work?" | `.claude/skills/gitnexus/gitnexus-exploring/SKILL.md` |
|
|
37
|
-
| Blast radius / "What breaks if I change X?" | `.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md` |
|
|
38
|
-
| Trace bugs / "Why is X failing?" | `.claude/skills/gitnexus/gitnexus-debugging/SKILL.md` |
|
|
39
|
-
| Rename / extract / split / refactor | `.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md` |
|
|
40
|
-
| Tools, resources, schema reference | `.claude/skills/gitnexus/gitnexus-guide/SKILL.md` |
|
|
41
|
-
| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus/gitnexus-cli/SKILL.md` |
|
|
42
|
-
|
|
43
|
-
<!-- gitnexus:end -->
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.icon[data-v-0af0286e]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.icon-btn[data-v-38f813ef]{cursor:pointer;margin:0 0 0 8px;--el-button-hover-bg-color: var(--el-color-primary-light-3)}.icon-btn[data-v-38f813ef]:hover{color:var(--el-button-hover-bg-color)}.icon-btn--disabled[data-v-38f813ef]{color:var(--el-color-disabled-text-color)!important;cursor:not-allowed!important}.icon-btn--size-large[data-v-38f813ef]{font-size:var(--el-font-size-large)}.icon-btn--size-default[data-v-38f813ef]{font-size:var(--el-font-size-base)}.icon-btn--size-medium[data-v-38f813ef]{font-size:var(--el-font-size-medium)}.icon-btn--size-small[data-v-38f813ef]{font-size:var(--el-font-size-small)}.icon-btn--primary[data-v-38f813ef]{--el-button-hover-bg-color: var(--el-color-primary-light-3);--el-button-disabled-bg-color: var(--el-color-primary-light-5);color:var(--el-color-primary)}.icon-btn--primary--disabled[data-v-38f813ef]{color:var(--el-color-primary-light-5)!important;cursor:not-allowed!important}.icon-btn--success[data-v-38f813ef]{--el-button-hover-bg-color: var(--el-color-success-light-3);--el-button-disabled-bg-color: var(--el-color-success-light-5);color:var(--el-color-success)}.icon-btn--success--disabled[data-v-38f813ef]{color:var(--el-color-success-light-5)!important;cursor:not-allowed!important}.icon-btn--warning[data-v-38f813ef]{--el-button-hover-bg-color: var(--el-color-warning-light-3);--el-button-disabled-bg-color: var(--el-color-warning-light-5);color:var(--el-color-warning)}.icon-btn--warning--disabled[data-v-38f813ef]{color:var(--el-color-warning-light-5)!important;cursor:not-allowed!important}.icon-btn--danger[data-v-38f813ef]{--el-button-hover-bg-color: var(--el-color-danger-light-3);--el-button-disabled-bg-color: var(--el-color-danger-light-5);color:var(--el-color-danger)}.icon-btn--danger--disabled[data-v-38f813ef]{color:var(--el-color-danger-light-5)!important;cursor:not-allowed!important}.icon-btn--info[data-v-38f813ef]{--el-button-hover-bg-color: var(--el-color-info-light-3);--el-button-disabled-bg-color: var(--el-color-info-light-5);color:var(--el-color-info)}.icon-btn--info--disabled[data-v-38f813ef]{color:var(--el-color-info-light-5)!important;cursor:not-allowed!important}.elementSelect[data-v-004aa9c5]{border:2px dashed #1a67f8!important}.demo-form-inline .el-input[data-v-004aa9c5]{--el-input-width: 220px}.demo-form-inline .el-select[data-v-004aa9c5]{--el-select-width: 220px}.icon-btn[data-v-a14c1b84]{margin-right:5px;cursor:pointer;--el-button-hover-bg-color: var(--el-color-primary-light-3)}.icon-btn[data-v-a14c1b84]:hover{color:var(--el-button-hover-bg-color)}.icon-btn--disabled[data-v-a14c1b84]{color:var(--el-color-disabled-text-color);cursor:not-allowed!important}.icon-btn--size-large[data-v-a14c1b84]{font-size:var(--el-font-size-large)}.icon-btn--size-default[data-v-a14c1b84]{font-size:var(--el-font-size-base)}.icon-btn--size-small[data-v-a14c1b84]{font-size:var(--el-font-size-small)}.icon-btn--primary[data-v-a14c1b84]{--el-button-hover-bg-color: var(--el-color-primary-light-3);--el-button-disabled-bg-color: var(--el-color-primary-light-5);color:var(--el-color-primary)}.icon-btn--success[data-v-a14c1b84]{--el-button-hover-bg-color: var(--el-color-success-light-3);--el-button-disabled-bg-color: var(--el-color-success-light-5);color:var(--el-color-success)}.icon-btn--warning[data-v-a14c1b84]{--el-button-hover-bg-color: var(--el-color-warning-light-3);--el-button-disabled-bg-color: var(--el-color-warning-light-5);color:var(--el-color-warning)}.icon-btn--danger[data-v-a14c1b84]{--el-button-hover-bg-color: var(--el-color-danger-light-3);--el-button-disabled-bg-color: var(--el-color-danger-light-5);color:var(--el-color-danger)}.icon-btn--info[data-v-a14c1b84]{--el-button-hover-bg-color: var(--el-color-info-light-3);--el-button-disabled-bg-color: var(--el-color-info-light-5);color:var(--el-color-info)}
|