This commit is contained in:
2024-10-29 05:37:46 +01:00
commit fe33c5f123
34 changed files with 20148 additions and 0 deletions

8
.dockerignore Normal file
View File

@@ -0,0 +1,8 @@
.tmp/
.cache/
.git/
build/
node_modules/
.env
data/
backup/

17
.env Normal file
View File

@@ -0,0 +1,17 @@
# @strapi-community/dockerize variables
DATABASE_HOST=db
DATABASE_PORT=5432
DATABASE_NAME=strapi
DATABASE_USERNAME=strapi
DATABASE_PASSWORD=b40df9add7cea7e0
NODE_ENV=development
DATABASE_CLIENT=postgres
# @strapi-community/dockerize end variables
JWT_SECRET=1aeac80abdf801270c2b8e5b518e1c678f64f5f0ca84134920f82860b0aee3fb
ADMIN_JWT_SECRET=1aeac80abdf801270c2b8e5b518e1c678f64f5f0ca84134920f82860b0aee3fb
APP_KEYS=1aeac80abdf801270c2b8e5b518e1c678f64f5f0ca84134920f82860b0aee3fb
API_TOKEN_SALT=b9868732fd5e18727e5a8daf6a8643ed
TRANSFER_TOKEN_SALT=b9868732fd5e18727e5a8daf6a8643ed

15
.env.save Normal file
View File

@@ -0,0 +1,15 @@
POSTGRES_DB=strapi
POSTGRES_USER=strapi
POSTGRES_PASSWORD=W53g59YRVBPV4X45i5BrYG7v
DATABASE_CLIENT=postgres
DATABASE_HOST=db
DATABASE_PORT=5432
DATABASE_NAME=strapi
DATABASE_USERNAME=strapi
DATABASE_PASSWORD=W53g59YRVBPV4X45i5BrYG7v
NODE_ENV=production
JWT_SECRET=0e8ff17f061dbf5f4686409e61094a18ee6a71434b37c68cdb4039b98d2f761c
ADMIN_JWT_SECRET=5ee332a53d01856350f8d6d5d44d37fc8184bf3b1aa4ddda816f9fd7a4ac3175
APP_KEYS=2565203834c977ddcd60ccc2eca44d3d88a0b4dfe9f5a275c870c65d5d386a07

16
.strapi/client/app.js Normal file
View File

@@ -0,0 +1,16 @@
/**
* This file was automatically generated by Strapi.
* Any modifications made will be discarded.
*/
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
import i18N from "@strapi/plugin-i18n/strapi-admin";
import strapiCloud from "@strapi/plugin-cloud/strapi-admin";
import { renderAdmin } from "@strapi/strapi/admin";
renderAdmin(document.getElementById("strapi"), {
plugins: {
"users-permissions": usersPermissions,
i18n: i18N,
"strapi-cloud": strapiCloud,
},
});

62
.strapi/client/index.html Normal file
View File

@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<!--
This file was automatically generated by Strapi.
Any modifications made will be discarded.
-->
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<meta name="robots" content="noindex" />
<meta name="referrer" content="same-origin" />
<title>Strapi Admin</title>
<style>
html,
body,
#strapi {
height: 100%;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<div id="strapi"></div>
<noscript
><div class="strapi--root">
<div class="strapi--no-js">
<style type="text/css">
.strapi--root {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: #fff;
}
.strapi--no-js {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
font-family: helvetica, arial, sans-serif;
}
</style>
<h1>JavaScript disabled</h1>
<p>
Please
<a href="https://www.enable-javascript.com/">enable JavaScript</a>
in your browser and reload the page to proceed.
</p>
</div>
</div></noscript
>
</body>
</html>

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:18-alpine
# Installing libvips-dev for sharp Compatibility
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev
ARG NODE_ENV=development
ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
COPY package.json package-lock.json ./
COPY ./patches ./patches
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install
RUN npx patch-package
WORKDIR /opt/app
COPY . .
ENV PATH /opt/node_modules/.bin:$PATH
RUN chown -R node:node /opt/app
USER node
RUN ["npm", "run", "build"]
EXPOSE 1337
CMD ["npm", "run", "develop"]

29
Dockerfile.prod Normal file
View File

@@ -0,0 +1,29 @@
# Creating multi-stage build for production
FROM node:18-alpine as build
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev > /dev/null 2>&1
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
COPY package.json package-lock.json ./
RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production
ENV PATH /opt/node_modules/.bin:$PATH
WORKDIR /opt/app
COPY . .
RUN npm run build
# Creating final production image
FROM node:16-alpine
RUN apk add --no-cache vips-dev
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
WORKDIR /opt/
COPY --from=build /opt/node_modules ./node_modules
WORKDIR /opt/app
COPY --from=build /opt/app ./
ENV PATH /opt/node_modules/.bin:$PATH
RUN chown -R node:node /opt/app
USER node
EXPOSE 1337
CMD ["npm", "run", "start"]

61
README.md Normal file
View File

@@ -0,0 +1,61 @@
# 🚀 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.
```
yarn strapi deploy
```
## 📚 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>

19
config/admin.js Normal file
View File

@@ -0,0 +1,19 @@
const PassportZitadel = require('passport-zitadel');
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),
},
});

40
config/admin.js.save Normal file
View File

@@ -0,0 +1,40 @@
const PassportZitadel = require('passport-zitadel');
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET'),
providers: [
{
uid: "zitadel-introspection",
displayName: "Trompxtette",
icon: "",
createStrategy: (strapi) =>
new PassportZitadel.ZitadelIntrospectionStrategy(
{
authority: 'https://trompette.espace120.fr',
clientId: '282357429163868163@infra',
clientSecret: 'Ln4gf8LjLi0JDirTwgs7N1pNQkehN0IBX0VHbzjlnvBP5fwhXldUMcy1FsyPBlbz',
},
(accessToken, refreshToken, profile, done) => {
done(null, {
email: profile.email,
username: profile.username,
});
}
),
},
],
},
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
config/api.js Normal file
View File

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

92
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),
},
};
};

13
config/env/development/database.js vendored Normal file
View File

@@ -0,0 +1,13 @@
module.exports = ({ env }) => ({
connection: {
client: 'postgres',
connection: {
host: env('DATABASE_HOST', 'db'),
port: env.int('DATABASE_PORT', 5432),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'strapi'),
password: env('DATABASE_PASSWORD', '^5RHwTf7xThya@'),
ssl: env.bool('DATABASE_SSL', false)
}
}
});

13
config/env/production/database.js vendored Normal file
View File

@@ -0,0 +1,13 @@
module.exports = ({ env }) => ({
connection: {
client: 'postgres',
connection: {
host: env('DATABASE_HOST', 'db'),
port: env.int('DATABASE_PORT', 5432),
database: env('DATABASE_NAME', 'strapi'),
user: env('DATABASE_USERNAME', 'strapi'),
password: env('DATABASE_PASSWORD', '^5RHwTf7xThya@'),
ssl: env.bool('DATABASE_SSL', false)
}
}
});

12
config/middlewares.js Normal file
View File

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

21
config/plugins.js Normal file
View File

@@ -0,0 +1,21 @@
module.exports = ({ env }) => ({
email: {
config: {
provider: "strapi-provider-email-smtp",
providerOptions: {
host: "smtp.gmail.com", //SMTP Host
port: 465, //SMTP Port
secure: true,
username: "CHANGEME",
password: "CHANGEME",
rejectUnauthorized: true,
requireTLS: true,
connectionTimeout: 1,
},
},
settings: {
defaultFrom: "CHANGEME",
defaultReplyTo: "CHANGEME",
},
},
});

10
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

61
docker-compose.yml Normal file
View File

@@ -0,0 +1,61 @@
version: "3"
services:
strapi:
container_name: strapi
build: .
image: strapi:latest
restart: unless-stopped
env_file: .env
environment:
DATABASE_CLIENT: ${DATABASE_CLIENT}
DATABASE_HOST: strapiDB
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PORT: ${DATABASE_PORT}
JWT_SECRET: ${JWT_SECRET}
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
NODE_ENV: ${NODE_ENV}
volumes:
- ./config:/opt/app/config
- ./src:/opt/app/src
- ./package.json:/opt/package.json
- ./package-lock.json:/opt/package-lock.json
- ./license.txt:/opt/licence.txt
- ./patches:/opt/patches
- ./.env:/opt/app/.env
- ./public/uploads:/opt/app/public/uploads
ports:
- "1337:1337"
networks:
- strapi
depends_on:
- strapiDB
strapiDB:
container_name: strapiDB
platform: linux/amd64 #for platform error on Apple M1 chips
restart: unless-stopped
env_file: .env
image: postgres:14.5-alpine
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- strapi-data:/var/lib/postgresql/data/ #using a volume
#- ./data:/var/lib/postgresql/data/ # if you want to use a bind folder
ports:
- "5432:5432"
networks:
- strapi
volumes:
strapi-data:
networks:
strapi:
name: Strapi
driver: bridge

BIN
favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

8
jsconfig.json Normal file
View File

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

1
license.txt Normal file
View File

@@ -0,0 +1 @@
TFJYa2ZoVUpRSksvV3IzeElpOHZqa0w0YmFNQm5DaWlWWG4rWWhJdTB1UHYzd0lna2RwM0RVUXJLM09IMW4wcXFXWmF1THpPWG1JVWtRZUhTVEZhRFd5Wmp3OXp0bXZaQXpZbzNJTld0aWJISDdueW92T3RpR1JuOUdKekRvNHlkL21BTmI5UEFVMURBQk44WDZFb2tsVklUSHBOOGFLMGpPUDJVNVB2SEJTTDdwRlo0ODRXYkczRnRDaXY5ZUpGdzJQbWF3TTB1eWtSUE55Szl0QU9lTWVqejNvem9ndGVsUGplYXBZZHBMM1ZSdHZwdTZxNGtxd1lMR2hVQUlSWVNUM0NGMnhXM29OYnUvUkl3TUlxcEtzZlZ0Rk5MMTdHR0lETUdiTDRTMkpSaXlQSWRkUVppSjJTcjFzYjFxM1dpOUo5aldza29obGc1SGxuRDBHSzFnPT0KZXdvZ0lDQWdJbVY0Y0dseVpVRjBJam9nSWpJd09Ua3RNVEl0TXpFaUxBb2dJQ0FnSW5SNWNHVWlPaUFpWjI5c1pDSUtmUT09

19409
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

40
package.json Normal file
View File

@@ -0,0 +1,40 @@
{
"name": "strapi",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi",
"deploy": "strapi deploy"
},
"dependencies": {
"@iopanda/strapi-crack-ee": "^1.0.12",
"@strapi/plugin-cloud": "4.25.8",
"@strapi/plugin-i18n": "4.25.8",
"@strapi/plugin-users-permissions": "4.25.8",
"@strapi/strapi": "4.25.8",
"passport-zitadel": "^1.1.22",
"patch-package": "^8.0.0",
"pg": "^8.12.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-provider-email-smtp": "^1.0.3",
"styled-components": "5.3.3"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "73bb53bd-b1e5-4e73-875b-32f65fce5eb2"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"postinstall": "patch-package",
"license": "MIT"
}

View File

@@ -0,0 +1,48 @@
diff --git a/node_modules/@strapi/plugin-users-permissions/server/bootstrap/grant-config.js b/node_modules/@strapi/plugin-users-permissions/server/bootstrap/grant-config.js
index 013e92c..720ce69 100644
--- a/node_modules/@strapi/plugin-users-permissions/server/bootstrap/grant-config.js
+++ b/node_modules/@strapi/plugin-users-permissions/server/bootstrap/grant-config.js
@@ -137,4 +137,12 @@ module.exports = (baseURL) => ({
callback: `${baseURL}/keycloak/callback`,
scope: ['openid', 'email', 'profile'],
},
+ trompette: {
+ enabled: true,
+ icon: '',
+ key: '',
+ secret: '',
+ callback: `${baseURL}/trompette/callback`,
+ scope:['openid', 'email', 'profile']
+ }
});
diff --git a/node_modules/@strapi/plugin-users-permissions/server/services/providers-registry.js b/node_modules/@strapi/plugin-users-permissions/server/services/providers-registry.js
index a559971..d0c508d 100644
--- a/node_modules/@strapi/plugin-users-permissions/server/services/providers-registry.js
+++ b/node_modules/@strapi/plugin-users-permissions/server/services/providers-registry.js
@@ -347,6 +347,21 @@ const getInitialProviders = ({ purest }) => ({
};
});
},
+ async trompette({ accessToken }) {
+ const trompette = purest({ provider: 'trompette' });
+ //const { body: userBody } = await trompette.get('user').auth(accessToken).request();
+
+ return keycloak
+ .get('user')
+ .auth(accessToken)
+ .request()
+ .then(({ body }) => {
+ return {
+ username: body.preferred_username,
+ email: body.email,
+ };
+ });
+ }
});
module.exports = () => {
@@ -373,3 +388,4 @@ module.exports = () => {
},
};
};
+

View File

@@ -0,0 +1,31 @@
diff --git a/node_modules/grant/config/oauth.json b/node_modules/grant/config/oauth.json
index 54afd00..4a2ba1e 100644
--- a/node_modules/grant/config/oauth.json
+++ b/node_modules/grant/config/oauth.json
@@ -1179,5 +1179,11 @@
"access_url": "https://zoom.us/oauth/token",
"oauth": 2,
"scope_delimiter": " "
- }
+ },
+ "trompette": {
+ "authorize_url": "https://trompette.espace120.fr/oauth/v2/authorize",
+ "access_url": "https://trompette.espace120.fr/oauth/v2/token",
+ "oauth": 2,
+ "scope_delimiter": " "
+ }
}
diff --git a/node_modules/grant/config/profile.json b/node_modules/grant/config/profile.json
index c5956c1..e9fe3f5 100644
--- a/node_modules/grant/config/profile.json
+++ b/node_modules/grant/config/profile.json
@@ -634,5 +634,8 @@
},
"zoom": {
"profile_url": "https://api.zoom.us/v2/users/me"
- }
+ },
+ "trompette": {
+ "profile_url": "https://trompette.espace120.fr/oidc/v1/userinfo"
+ }
}

View File

@@ -0,0 +1,24 @@
diff --git a/node_modules/purest/config/providers.json b/node_modules/purest/config/providers.json
index 8dd1dae..d0e5784 100644
--- a/node_modules/purest/config/providers.json
+++ b/node_modules/purest/config/providers.json
@@ -2784,5 +2784,19 @@
"authorization": "Bearer {auth}"
}
}
+ },
+ "trompette": {
+ "default": {
+ "origin": "",
+ "path": "",
+ "headers": {
+ "authorization": "Bearer {auth}"
+ }
+ },
+ "oauth": {
+ "origin": "https://trompette.espace120.fr",
+ "path": "oauth/{version}/{path}",
+ "version": "v2"
+ }
}
}

3
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: /

0
public/uploads/.gitkeep Normal file
View File

39
src/admin/app.example.js Normal 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
src/api/.gitkeep Normal file
View File

0
src/extensions/.gitkeep Normal file
View File

20
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 }*/) {},
};