Import repositories from gitlab
This commit is contained in:
113
strapi/.dockerignore
Normal file
113
strapi/.dockerignore
Normal file
@@ -0,0 +1,113 @@
|
||||
############################
|
||||
# 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
|
||||
############################
|
||||
|
||||
license.txt
|
||||
exports
|
||||
*.cache
|
||||
dist
|
||||
build
|
||||
.strapi-updater.json
|
||||
16
strapi/.editorconfig
Normal file
16
strapi/.editorconfig
Normal 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
7
strapi/.env.example
Normal 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
3
strapi/.eslintignore
Normal file
@@ -0,0 +1,3 @@
|
||||
.cache
|
||||
build
|
||||
**/node_modules/**
|
||||
27
strapi/.eslintrc
Normal file
27
strapi/.eslintrc
Normal 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
114
strapi/.gitignore
vendored
Normal 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
|
||||
11
strapi/Dockerfile
Normal file
11
strapi/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM node:20.10-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
|
||||
COPY ./ ./
|
||||
RUN yarn build
|
||||
|
||||
ENTRYPOINT ["yarn", "strapi"]
|
||||
CMD ["start"]
|
||||
57
strapi/README.md
Normal file
57
strapi/README.md
Normal 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
17
strapi/config/admin.js
Normal 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
7
strapi/config/api.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
rest: {
|
||||
defaultLimit: 25,
|
||||
maxLimit: 100,
|
||||
withCount: true,
|
||||
},
|
||||
};
|
||||
92
strapi/config/database.js
Normal file
92
strapi/config/database.js
Normal 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),
|
||||
},
|
||||
};
|
||||
};
|
||||
12
strapi/config/middlewares.js
Normal file
12
strapi/config/middlewares.js
Normal 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
10
strapi/config/server.js
Normal 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),
|
||||
},
|
||||
});
|
||||
0
strapi/database/migrations/.gitkeep
Normal file
0
strapi/database/migrations/.gitkeep
Normal file
BIN
strapi/favicon.png
Normal file
BIN
strapi/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 497 B |
8
strapi/jsconfig.json
Normal file
8
strapi/jsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "nodenext",
|
||||
"target": "ES2021",
|
||||
"checkJs": true,
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
||||
31
strapi/package.json
Normal file
31
strapi/package.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "fefan-strapi",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"description": "A Strapi application",
|
||||
"scripts": {
|
||||
"develop": "strapi develop",
|
||||
"start": "strapi start",
|
||||
"build": "strapi build",
|
||||
"strapi": "strapi"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"@strapi/plugin-i18n": "4.15.0",
|
||||
"@strapi/plugin-users-permissions": "4.15.0",
|
||||
"@strapi/strapi": "4.15.0",
|
||||
"better-sqlite3": "8.6.0",
|
||||
"pg": "^8.11.3"
|
||||
},
|
||||
"author": {
|
||||
"name": "A Strapi developer"
|
||||
},
|
||||
"strapi": {
|
||||
"uuid": "3e9d2b31-e51d-464f-94f1-ab73e28fd712"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <=20.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
3
strapi/public/robots.txt
Normal file
3
strapi/public/robots.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
|
||||
# User-Agent: *
|
||||
# Disallow: /
|
||||
0
strapi/public/uploads/.gitkeep
Normal file
0
strapi/public/uploads/.gitkeep
Normal file
2
strapi/server.js
Normal file
2
strapi/server.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import strapi from '@strapi/strapi';
|
||||
strapi().start();
|
||||
39
strapi/src/admin/app.example.js
Normal file
39
strapi/src/admin/app.example.js
Normal 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,
|
||||
};
|
||||
9
strapi/src/admin/webpack.config.example.js
Normal file
9
strapi/src/admin/webpack.config.example.js
Normal 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
0
strapi/src/api/.gitkeep
Normal file
32
strapi/src/api/article/content-types/article/schema.json
Normal file
32
strapi/src/api/article/content-types/article/schema.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "articles",
|
||||
"info": {
|
||||
"singularName": "article",
|
||||
"pluralName": "articles",
|
||||
"displayName": "Article",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"type": "string"
|
||||
},
|
||||
"edition": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::edition.edition",
|
||||
"inversedBy": "articles"
|
||||
},
|
||||
"excerpt": {
|
||||
"type": "blocks",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/article/controllers/article.js
Normal file
9
strapi/src/api/article/controllers/article.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* article controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::article.article');
|
||||
9
strapi/src/api/article/routes/article.js
Normal file
9
strapi/src/api/article/routes/article.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* article router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::article.article');
|
||||
9
strapi/src/api/article/services/article.js
Normal file
9
strapi/src/api/article/services/article.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* article service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::article.article');
|
||||
37
strapi/src/api/band/content-types/band/schema.json
Normal file
37
strapi/src/api/band/content-types/band/schema.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "bands",
|
||||
"info": {
|
||||
"singularName": "band",
|
||||
"pluralName": "bands",
|
||||
"displayName": "Band"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"profile_picture": {
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": true,
|
||||
"required": false
|
||||
},
|
||||
"programs": {
|
||||
"type": "relation",
|
||||
"relation": "manyToMany",
|
||||
"target": "api::program.program",
|
||||
"mappedBy": "bands"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/band/controllers/band.js
Normal file
9
strapi/src/api/band/controllers/band.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* band controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::band.band');
|
||||
9
strapi/src/api/band/routes/band.js
Normal file
9
strapi/src/api/band/routes/band.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* band router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::band.band');
|
||||
9
strapi/src/api/band/services/band.js
Normal file
9
strapi/src/api/band/services/band.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* band service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::band.band');
|
||||
91
strapi/src/api/edition/content-types/edition/schema.json
Normal file
91
strapi/src/api/edition/content-types/edition/schema.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "editions",
|
||||
"info": {
|
||||
"singularName": "edition",
|
||||
"pluralName": "editions",
|
||||
"displayName": "Edition",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"default": "Le FeFan"
|
||||
},
|
||||
"subtitle": {
|
||||
"type": "string"
|
||||
},
|
||||
"introduction": {
|
||||
"type": "blocks",
|
||||
"required": true
|
||||
},
|
||||
"flyer": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
]
|
||||
},
|
||||
"gallery": {
|
||||
"type": "media",
|
||||
"multiple": true,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"videos"
|
||||
]
|
||||
},
|
||||
"start": {
|
||||
"type": "date",
|
||||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"end": {
|
||||
"type": "date",
|
||||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"social_links": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::social-link.social-link",
|
||||
"mappedBy": "edition"
|
||||
},
|
||||
"statistics": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::statistic.statistic",
|
||||
"mappedBy": "edition"
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"programs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::program.program",
|
||||
"mappedBy": "edition"
|
||||
},
|
||||
"sponsors": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::sponsor.sponsor"
|
||||
},
|
||||
"articles": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::article.article",
|
||||
"mappedBy": "edition"
|
||||
},
|
||||
"movie": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/edition/controllers/edition.js
Normal file
9
strapi/src/api/edition/controllers/edition.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* edition controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::edition.edition');
|
||||
9
strapi/src/api/edition/routes/edition.js
Normal file
9
strapi/src/api/edition/routes/edition.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* edition router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::edition.edition');
|
||||
9
strapi/src/api/edition/services/edition.js
Normal file
9
strapi/src/api/edition/services/edition.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* edition service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::edition.edition');
|
||||
66
strapi/src/api/program/content-types/program/schema.json
Normal file
66
strapi/src/api/program/content-types/program/schema.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "programs",
|
||||
"info": {
|
||||
"singularName": "program",
|
||||
"pluralName": "programs",
|
||||
"displayName": "Program",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"map_uri": {
|
||||
"type": "string",
|
||||
"regex": "\\w+:(\\/?\\/?)[^\\s]+"
|
||||
},
|
||||
"introduction": {
|
||||
"type": "blocks",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"bands": {
|
||||
"type": "relation",
|
||||
"relation": "manyToMany",
|
||||
"target": "api::band.band",
|
||||
"inversedBy": "programs"
|
||||
},
|
||||
"type": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"village",
|
||||
"city-wide"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"time_slots": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::time-slot.time-slot",
|
||||
"mappedBy": "program"
|
||||
},
|
||||
"edition": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::edition.edition",
|
||||
"inversedBy": "programs"
|
||||
},
|
||||
"sticker": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/program/controllers/program.js
Normal file
9
strapi/src/api/program/controllers/program.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* program controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::program.program');
|
||||
9
strapi/src/api/program/routes/program.js
Normal file
9
strapi/src/api/program/routes/program.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* program router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::program.program');
|
||||
9
strapi/src/api/program/services/program.js
Normal file
9
strapi/src/api/program/services/program.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* program service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::program.program');
|
||||
39
strapi/src/api/site/content-types/site/schema.json
Normal file
39
strapi/src/api/site/content-types/site/schema.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "sites",
|
||||
"info": {
|
||||
"singularName": "site",
|
||||
"pluralName": "sites",
|
||||
"displayName": "Site",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"edition": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::edition.edition"
|
||||
},
|
||||
"legal": {
|
||||
"type": "blocks"
|
||||
},
|
||||
"contact_text": {
|
||||
"type": "blocks"
|
||||
},
|
||||
"contact_mail": {
|
||||
"type": "string",
|
||||
"regex": "^[\\w\\+\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"author": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/site/controllers/site.js
Normal file
9
strapi/src/api/site/controllers/site.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* site controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::site.site');
|
||||
9
strapi/src/api/site/routes/site.js
Normal file
9
strapi/src/api/site/routes/site.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* site router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::site.site');
|
||||
9
strapi/src/api/site/services/site.js
Normal file
9
strapi/src/api/site/services/site.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* site service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::site.site');
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "social_links",
|
||||
"info": {
|
||||
"singularName": "social-link",
|
||||
"pluralName": "social-links",
|
||||
"displayName": "Social Link",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"regex": "\\w+:(\\/?\\/?)[^\\s]+",
|
||||
"required": true,
|
||||
"unique": false
|
||||
},
|
||||
"type": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"instagram",
|
||||
"facebook",
|
||||
"youtube"
|
||||
],
|
||||
"required": true
|
||||
},
|
||||
"edition": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::edition.edition",
|
||||
"inversedBy": "social_links"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/social-link/controllers/social-link.js
Normal file
9
strapi/src/api/social-link/controllers/social-link.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* social-link controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::social-link.social-link');
|
||||
9
strapi/src/api/social-link/routes/social-link.js
Normal file
9
strapi/src/api/social-link/routes/social-link.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* social-link router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::social-link.social-link');
|
||||
9
strapi/src/api/social-link/services/social-link.js
Normal file
9
strapi/src/api/social-link/services/social-link.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* social-link service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::social-link.social-link');
|
||||
32
strapi/src/api/sponsor/content-types/sponsor/schema.json
Normal file
32
strapi/src/api/sponsor/content-types/sponsor/schema.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "sponsors",
|
||||
"info": {
|
||||
"singularName": "sponsor",
|
||||
"pluralName": "sponsors",
|
||||
"displayName": "Sponsor"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"uri": {
|
||||
"type": "string",
|
||||
"regex": "\\w+:(\\/?\\/?)[^\\s]+",
|
||||
"required": true
|
||||
},
|
||||
"image": {
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/sponsor/controllers/sponsor.js
Normal file
9
strapi/src/api/sponsor/controllers/sponsor.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* sponsor controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::sponsor.sponsor');
|
||||
9
strapi/src/api/sponsor/routes/sponsor.js
Normal file
9
strapi/src/api/sponsor/routes/sponsor.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* sponsor router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::sponsor.sponsor');
|
||||
9
strapi/src/api/sponsor/services/sponsor.js
Normal file
9
strapi/src/api/sponsor/services/sponsor.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* sponsor service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::sponsor.sponsor');
|
||||
30
strapi/src/api/statistic/content-types/statistic/schema.json
Normal file
30
strapi/src/api/statistic/content-types/statistic/schema.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "statistics",
|
||||
"info": {
|
||||
"singularName": "statistic",
|
||||
"pluralName": "statistics",
|
||||
"displayName": "Statistic"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"value": {
|
||||
"type": "integer",
|
||||
"required": true,
|
||||
"default": 0
|
||||
},
|
||||
"edition": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::edition.edition",
|
||||
"inversedBy": "statistics"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/statistic/controllers/statistic.js
Normal file
9
strapi/src/api/statistic/controllers/statistic.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* statistic controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::statistic.statistic');
|
||||
9
strapi/src/api/statistic/routes/statistic.js
Normal file
9
strapi/src/api/statistic/routes/statistic.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* statistic router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::statistic.statistic');
|
||||
9
strapi/src/api/statistic/services/statistic.js
Normal file
9
strapi/src/api/statistic/services/statistic.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* statistic service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::statistic.statistic');
|
||||
32
strapi/src/api/time-slot/content-types/time-slot/schema.json
Normal file
32
strapi/src/api/time-slot/content-types/time-slot/schema.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "time_slots",
|
||||
"info": {
|
||||
"singularName": "time-slot",
|
||||
"pluralName": "time-slots",
|
||||
"displayName": "Time Slot"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"start": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
},
|
||||
"end": {
|
||||
"type": "datetime",
|
||||
"required": true
|
||||
},
|
||||
"content": {
|
||||
"type": "blocks"
|
||||
},
|
||||
"program": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::program.program",
|
||||
"inversedBy": "time_slots"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/time-slot/controllers/time-slot.js
Normal file
9
strapi/src/api/time-slot/controllers/time-slot.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* time-slot controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::time-slot.time-slot');
|
||||
9
strapi/src/api/time-slot/routes/time-slot.js
Normal file
9
strapi/src/api/time-slot/routes/time-slot.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* time-slot router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::time-slot.time-slot');
|
||||
9
strapi/src/api/time-slot/services/time-slot.js
Normal file
9
strapi/src/api/time-slot/services/time-slot.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* time-slot service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::time-slot.time-slot');
|
||||
0
strapi/src/extensions/.gitkeep
Normal file
0
strapi/src/extensions/.gitkeep
Normal file
20
strapi/src/index.js
Normal file
20
strapi/src/index.js
Normal 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 }*/) {},
|
||||
};
|
||||
5
strapi/types/generated/components.d.ts
vendored
Normal file
5
strapi/types/generated/components.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { Schema, Attribute } from '@strapi/strapi';
|
||||
|
||||
declare module '@strapi/types' {
|
||||
export module Shared {}
|
||||
}
|
||||
1064
strapi/types/generated/contentTypes.d.ts
vendored
Normal file
1064
strapi/types/generated/contentTypes.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9968
strapi/yarn.lock
Normal file
9968
strapi/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user