1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

scaffold new ui directory

This commit is contained in:
checktheroads
2021-03-13 02:28:21 -07:00
parent 94c25b0ff4
commit 6fe2f83435
8 changed files with 14039 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,5 +1,8 @@
*.pyc *.pyc
*.swp *.swp
node_modules
/netbox/project-static/dist
/netbox/project-static/.cache
/netbox/netbox/configuration.py /netbox/netbox/configuration.py
/netbox/netbox/ldap_config.py /netbox/netbox/ldap_config.py
/netbox/reports/* /netbox/reports/*

View File

@ -356,7 +356,8 @@ X_FRAME_OPTIONS = 'SAMEORIGIN'
STATIC_ROOT = BASE_DIR + '/static' STATIC_ROOT = BASE_DIR + '/static'
STATIC_URL = '/{}static/'.format(BASE_PATH) STATIC_URL = '/{}static/'.format(BASE_PATH)
STATICFILES_DIRS = ( STATICFILES_DIRS = (
os.path.join(BASE_DIR, "project-static"), os.path.join(BASE_DIR, "project-static", "dist"),
os.path.join(BASE_DIR, "project-static", "img"),
) )
# Media # Media

View File

@ -0,0 +1,55 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true
},
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
},
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "error",
"no-unused-vars": "off",
"comma-dangle": ["error", "always-multiline"],
"global-require": "off",
"import/no-dynamic-require": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
]
}
}

View File

@ -0,0 +1,11 @@
{
"semi": true,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"useTabs": false,
"arrowParens": "avoid",
"trailingComma": "all"
}

View File

@ -0,0 +1,3 @@
{
"includePaths": ["node_modules"]
}

View File

@ -0,0 +1,19 @@
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"noUnusedParameters": true,
"esModuleInterop": true,
"isolatedModules": true,
"noUnusedLocals": true,
"declaration": true,
"module": "esnext",
"target": "esnext",
"jsx": "react",
"strict": true,
"baseUrl": "."
},
"include": ["src/**/*.ts", "./src/global.d.ts"],
"exclude": ["node_modules", "esm", "src/**/*.test.ts"]
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff