chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:38:36 +08:00
commit 8e2a6eb840
10194 changed files with 1593658 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"presets": [
[
"@nx/js/babel",
{
"useBuiltIns": "usage"
}
]
]
}
+7
View File
@@ -0,0 +1,7 @@
# nx-dev-models-menu
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test nx-dev-models-menu` to execute the unit tests via [Jest](https://jestjs.io).
+3
View File
@@ -0,0 +1,3 @@
import { baseConfig } from '../../eslint.config.mjs';
export default [...baseConfig];
+16
View File
@@ -0,0 +1,16 @@
/* eslint-disable */
module.exports = {
displayName: 'nx-dev-models-menu',
globals: {},
transform: {
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/nx-dev/models-menu',
preset: '../../jest.preset.js',
};
+8
View File
@@ -0,0 +1,8 @@
{
"name": "@nx/nx-dev-models-menu",
"version": "0.0.1",
"type": "commonjs",
"private": true,
"main": "./src/index.ts",
"types": "./src/index.ts"
}
+8
View File
@@ -0,0 +1,8 @@
{
"name": "nx-dev-models-menu",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "nx-dev/models-menu/src",
"projectType": "library",
"targets": {},
"tags": ["scope:nx-dev", "type:util"]
}
+1
View File
@@ -0,0 +1 @@
export * from './lib/menu.models';
+19
View File
@@ -0,0 +1,19 @@
export interface Menu {
sections: MenuSection[];
}
export interface MenuSection {
id: string;
name: string;
itemList: MenuItem[];
hideSectionHeader: boolean;
}
export interface MenuItem {
name: string;
path: string;
id: string;
isExternal: boolean;
children: MenuItem[];
disableCollapsible: boolean;
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"declaration": true,
"types": ["node"],
"composite": true
},
"exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
"include": ["**/*.ts"]
}
+19
View File
@@ -0,0 +1,19 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist/spec",
"types": ["jest", "node"]
},
"include": [
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.js",
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts",
"jest.config.ts"
]
}