This commit is contained in:
Florian Federspiel
2023-11-25 16:53:52 +01:00
commit 677030f712
685 changed files with 148719 additions and 0 deletions

16
strapi/.editorconfig Normal file
View File

@@ -0,0 +1,16 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false

7
strapi/.env.example Normal file
View File

@@ -0,0 +1,7 @@
HOST=0.0.0.0
PORT=1337
APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
TRANSFER_TOKEN_SALT=tobemodified
JWT_SECRET=tobemodified

3
strapi/.eslintignore Normal file
View File

@@ -0,0 +1,3 @@
.cache
build
**/node_modules/**

27
strapi/.eslintrc Normal file
View File

@@ -0,0 +1,27 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}

114
strapi/.gitignore vendored Normal file
View File

@@ -0,0 +1,114 @@
############################
# OS X
############################
.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*
############################
# Linux
############################
*~
############################
# Windows
############################
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp
############################
# Packages
############################
*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid
############################
# Logs and databases
############################
.tmp
*.log
*.sql
*.sqlite
*.sqlite3
############################
# Misc.
############################
*#
ssl
.idea
nbproject
public/uploads/*
!public/uploads/.gitkeep
############################
# Node.js
############################
lib-cov
lcov.info
pids
logs
results
node_modules
.node_history
############################
# Tests
############################
coverage
############################
# Strapi
############################
.env
license.txt
exports
*.cache
dist
build
.strapi-updater.json

57
strapi/README.md Normal file
View File

@@ -0,0 +1,57 @@
# 🚀 Getting started with Strapi
Strapi comes with a full featured [Command Line Interface](https://docs.strapi.io/dev-docs/cli) (CLI) which lets you scaffold and manage your project in seconds.
### `develop`
Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-develop)
```
npm run develop
# or
yarn develop
```
### `start`
Start your Strapi application with autoReload disabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-start)
```
npm run start
# or
yarn start
```
### `build`
Build your admin panel. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-build)
```
npm run build
# or
yarn build
```
## ⚙️ Deployment
Strapi gives you many possible deployment options for your project including [Strapi Cloud](https://cloud.strapi.io). Browse the [deployment section of the documentation](https://docs.strapi.io/dev-docs/deployment) to find the best solution for your use case.
## 📚 Learn more
- [Resource center](https://strapi.io/resource-center) - Strapi resource center.
- [Strapi documentation](https://docs.strapi.io) - Official Strapi documentation.
- [Strapi tutorials](https://strapi.io/tutorials) - List of tutorials made by the core team and the community.
- [Strapi blog](https://strapi.io/blog) - Official Strapi blog containing articles made by the Strapi team and the community.
- [Changelog](https://strapi.io/changelog) - Find out about the Strapi product updates, new features and general improvements.
Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/strapi). Your feedback and contributions are welcome!
## ✨ Community
- [Discord](https://discord.strapi.io) - Come chat with the Strapi community including the core team.
- [Forum](https://forum.strapi.io/) - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
- [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi.
---
<sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub>

17
strapi/config/admin.js Normal file
View File

@@ -0,0 +1,17 @@
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET'),
},
apiToken: {
salt: env('API_TOKEN_SALT'),
},
transfer: {
token: {
salt: env('TRANSFER_TOKEN_SALT'),
},
},
flags: {
nps: env.bool('FLAG_NPS', true),
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
},
});

7
strapi/config/api.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
rest: {
defaultLimit: 25,
maxLimit: 100,
withCount: true,
},
};

92
strapi/config/database.js Normal file
View File

@@ -0,0 +1,92 @@
const path = require('path');
module.exports = ({ env }) => {
const client = env('DATABASE_CLIENT', 'sqlite');
const connections = {
mysql: {
connection: {
connectionString: env('DATABASE_URL'),
host: env('DATABASE_HOST', 'localhost'),
port: env.int('DATABASE_PORT', 3306),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'strapi'),
password: env('DATABASE_PASSWORD', 'strapi'),
ssl: env.bool('DATABASE_SSL', false) && {
key: env('DATABASE_SSL_KEY', undefined),
cert: env('DATABASE_SSL_CERT', undefined),
ca: env('DATABASE_SSL_CA', undefined),
capath: env('DATABASE_SSL_CAPATH', undefined),
cipher: env('DATABASE_SSL_CIPHER', undefined),
rejectUnauthorized: env.bool(
'DATABASE_SSL_REJECT_UNAUTHORIZED',
true
),
},
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
mysql2: {
connection: {
host: env('DATABASE_HOST', 'localhost'),
port: env.int('DATABASE_PORT', 3306),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'strapi'),
password: env('DATABASE_PASSWORD', 'strapi'),
ssl: env.bool('DATABASE_SSL', false) && {
key: env('DATABASE_SSL_KEY', undefined),
cert: env('DATABASE_SSL_CERT', undefined),
ca: env('DATABASE_SSL_CA', undefined),
capath: env('DATABASE_SSL_CAPATH', undefined),
cipher: env('DATABASE_SSL_CIPHER', undefined),
rejectUnauthorized: env.bool(
'DATABASE_SSL_REJECT_UNAUTHORIZED',
true
),
},
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
postgres: {
connection: {
connectionString: env('DATABASE_URL'),
host: env('DATABASE_HOST', 'localhost'),
port: env.int('DATABASE_PORT', 5432),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'strapi'),
password: env('DATABASE_PASSWORD', 'strapi'),
ssl: env.bool('DATABASE_SSL', false) && {
key: env('DATABASE_SSL_KEY', undefined),
cert: env('DATABASE_SSL_CERT', undefined),
ca: env('DATABASE_SSL_CA', undefined),
capath: env('DATABASE_SSL_CAPATH', undefined),
cipher: env('DATABASE_SSL_CIPHER', undefined),
rejectUnauthorized: env.bool(
'DATABASE_SSL_REJECT_UNAUTHORIZED',
true
),
},
schema: env('DATABASE_SCHEMA', 'public'),
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
sqlite: {
connection: {
filename: path.join(
__dirname,
'..',
env('DATABASE_FILENAME', '.tmp/data.db')
),
},
useNullAsDefault: true,
},
};
return {
connection: {
client,
...connections[client],
acquireConnectionTimeout: env.int('DATABASE_CONNECTION_TIMEOUT', 60000),
},
};
};

View File

@@ -0,0 +1,12 @@
module.exports = [
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];

10
strapi/config/server.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
webhooks: {
populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', false),
},
});

View File

BIN
strapi/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

8
strapi/jsconfig.json Normal file
View File

@@ -0,0 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "nodenext",
"target": "ES2021",
"checkJs": true,
"allowJs": true
}
}

16350
strapi/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

29
strapi/package.json Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "strapi",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-i18n": "4.15.0",
"@strapi/plugin-users-permissions": "4.15.0",
"@strapi/strapi": "4.15.0",
"better-sqlite3": "8.6.0"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "8bfc6dcb-22af-44e6-a2cf-62bab851e57c"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}

3
strapi/public/robots.txt Normal file
View File

@@ -0,0 +1,3 @@
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
# User-Agent: *
# Disallow: /

View File

View File

@@ -0,0 +1,39 @@
const config = {
locales: [
// 'ar',
// 'fr',
// 'cs',
// 'de',
// 'dk',
// 'es',
// 'he',
// 'id',
// 'it',
// 'ja',
// 'ko',
// 'ms',
// 'nl',
// 'no',
// 'pl',
// 'pt-BR',
// 'pt',
// 'ru',
// 'sk',
// 'sv',
// 'th',
// 'tr',
// 'uk',
// 'vi',
// 'zh-Hans',
// 'zh',
],
};
const bootstrap = (app) => {
console.log(app);
};
export default {
config,
bootstrap,
};

View File

@@ -0,0 +1,9 @@
'use strict';
/* eslint-disable no-unused-vars */
module.exports = (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
return config;
};

0
strapi/src/api/.gitkeep Normal file
View File

View File

@@ -0,0 +1,40 @@
{
"kind": "collectionType",
"collectionName": "contacts",
"info": {
"singularName": "contact",
"pluralName": "contacts",
"displayName": "Contacts",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"email": {
"type": "email"
},
"role": {
"type": "string"
},
"customer": {
"type": "relation",
"relation": "manyToOne",
"target": "api::customer.customer",
"inversedBy": "contacts"
},
"vendor": {
"type": "relation",
"relation": "manyToOne",
"target": "api::vendor.vendor",
"inversedBy": "contacts"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::contact.contact');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::contact.contact');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::contact.contact');

View File

@@ -0,0 +1,34 @@
{
"kind": "collectionType",
"collectionName": "customers",
"info": {
"singularName": "customer",
"pluralName": "customers",
"displayName": "Customers",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"contacts": {
"type": "relation",
"relation": "oneToMany",
"target": "api::contact.contact",
"mappedBy": "customer"
},
"customerNumber": {
"type": "string"
},
"projects": {
"type": "relation",
"relation": "oneToMany",
"target": "api::project.project",
"mappedBy": "customer"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* customer controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::customer.customer');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* customer router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::customer.customer');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* customer service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::customer.customer');

View File

@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "documents",
"info": {
"singularName": "document",
"pluralName": "documents",
"displayName": "Documents",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"file": {
"type": "media",
"multiple": false,
"required": true,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"project": {
"type": "relation",
"relation": "oneToOne",
"target": "api::project.project"
},
"tags": {
"type": "json",
"required": true
},
"state": {
"type": "string",
"required": true,
"default": "Eingang"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* document controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::document.document');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* document router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::document.document');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* document service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::document.document');

View File

@@ -0,0 +1,18 @@
{
"kind": "collectionType",
"collectionName": "forms",
"info": {
"singularName": "form",
"pluralName": "forms",
"displayName": "Forms"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"fields": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* form controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::form.form');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* form router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::form.form');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* form service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::form.form');

View File

@@ -0,0 +1,25 @@
{
"kind": "collectionType",
"collectionName": "movements",
"info": {
"singularName": "movement",
"pluralName": "movements",
"displayName": "Movements",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"productId": {
"type": "string"
},
"spaceId": {
"type": "string"
},
"quantity": {
"type": "integer"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* movement controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::movement.movement');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* movement router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::movement.movement');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* movement service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::movement.movement');

View File

@@ -0,0 +1,56 @@
{
"kind": "collectionType",
"collectionName": "products",
"info": {
"singularName": "product",
"pluralName": "products",
"displayName": "Products",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"manufacturer": {
"type": "string"
},
"purchasePriceNet": {
"type": "decimal"
},
"profitPercentage": {
"type": "decimal"
},
"retailPriceNet": {
"type": "decimal"
},
"optionalProducts": {
"type": "relation",
"relation": "oneToMany",
"target": "api::product.product"
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"unit": {
"type": "string"
},
"tags": {
"type": "json"
},
"history": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* product controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::product.product');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* product router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::product.product');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* product service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::product.product');

View File

@@ -0,0 +1,31 @@
{
"kind": "collectionType",
"collectionName": "projects",
"info": {
"singularName": "project",
"pluralName": "projects",
"displayName": "Projects",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"notes": {
"type": "text"
},
"customer": {
"type": "relation",
"relation": "manyToOne",
"target": "api::customer.customer",
"inversedBy": "projects"
},
"phases": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* project controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::project.project');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* project router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::project.project');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* project service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::project.project');

View File

@@ -0,0 +1,26 @@
{
"kind": "collectionType",
"collectionName": "spaces",
"info": {
"singularName": "space",
"pluralName": "spaces",
"displayName": "Spaces",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"description": {
"type": "text"
},
"type": {
"type": "string"
},
"spaceNumber": {
"type": "string",
"unique": true
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* space controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::space.space');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* space router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::space.space');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* space service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::space.space');

View File

@@ -0,0 +1,28 @@
{
"kind": "collectionType",
"collectionName": "tasks",
"info": {
"singularName": "task",
"pluralName": "tasks",
"displayName": "Tasks",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"categorie": {
"type": "string"
},
"users": {
"type": "json"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* task controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::task.task');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* task router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::task.task');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* task service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::task.task');

View File

@@ -0,0 +1,21 @@
{
"kind": "collectionType",
"collectionName": "tenants",
"info": {
"singularName": "tenant",
"pluralName": "tenants",
"displayName": "Tenants"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"short": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* tenant controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::tenant.tenant');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* tenant router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::tenant.tenant');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* tenant service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::tenant.tenant');

View File

@@ -0,0 +1,28 @@
{
"kind": "collectionType",
"collectionName": "vendors",
"info": {
"singularName": "vendor",
"pluralName": "vendors",
"displayName": "Vendors",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"vendorNumber": {
"type": "string"
},
"contacts": {
"type": "relation",
"relation": "oneToMany",
"target": "api::contact.contact",
"mappedBy": "vendor"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* vendor controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::vendor.vendor');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* vendor router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::vendor.vendor');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* vendor service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::vendor.vendor');

View File

View File

@@ -0,0 +1,70 @@
{
"kind": "collectionType",
"collectionName": "up_users",
"info": {
"name": "user",
"description": "",
"singularName": "user",
"pluralName": "users",
"displayName": "User"
},
"options": {
"draftAndPublish": false,
"timestamps": true
},
"attributes": {
"username": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true,
"searchable": false
},
"resetPasswordToken": {
"type": "string",
"configurable": false,
"private": true,
"searchable": false
},
"confirmationToken": {
"type": "string",
"configurable": false,
"private": true,
"searchable": false
},
"confirmed": {
"type": "boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "boolean",
"default": false,
"configurable": false
},
"role": {
"type": "relation",
"relation": "manyToOne",
"target": "plugin::users-permissions.role",
"inversedBy": "users",
"configurable": false
}
}
}

20
strapi/src/index.js Normal file
View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/*{ strapi }*/) {},
/**
* An asynchronous bootstrap function that runs before
* your application gets started.
*
* This gives you an opportunity to set up your data model,
* run jobs, or perform some special logic.
*/
bootstrap(/*{ strapi }*/) {},
};

View File

@@ -0,0 +1,5 @@
import type { Schema, Attribute } from '@strapi/strapi';
declare module '@strapi/types' {
export module Shared {}
}

1092
strapi/types/generated/contentTypes.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff