remove strapi
This commit is contained in:
parent
32fd2642b1
commit
7b0880b53b
51 changed files with 35 additions and 7545 deletions
52
.github/workflows/deploy.yml
vendored
52
.github/workflows/deploy.yml
vendored
|
|
@ -1,52 +0,0 @@
|
||||||
name: Deployment
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
website:
|
|
||||||
name: Deploy website
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.GITHUB_SERVER_URL }}
|
|
||||||
username: ${{ env.GITHUB_REPOSITORY_OWNER }}
|
|
||||||
password: ${{ secrets.NPM_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}:latest
|
|
||||||
strapi:
|
|
||||||
name: Deploy strapi
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.GITHUB_SERVER_URL }}
|
|
||||||
username: ${{ env.GITHUB_REPOSITORY_OWNER }}
|
|
||||||
password: ${{ secrets.NPM_TOKEN }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: '{{defaultContext}}:strapi'
|
|
||||||
push: true
|
|
||||||
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}-strapi:latest
|
|
||||||
18
Dockerfile
18
Dockerfile
|
|
@ -1,18 +0,0 @@
|
||||||
FROM oven/bun:1.2-alpine AS build
|
|
||||||
|
|
||||||
WORKDIR /opt/build
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
RUN bun install --filter '!strapi' && bun run build
|
|
||||||
|
|
||||||
RUN rm -rf ./node_modules/ && bun install --filter '!strapi' --production
|
|
||||||
|
|
||||||
FROM node:18-alpine3.21
|
|
||||||
|
|
||||||
WORKDIR /opt/app
|
|
||||||
|
|
||||||
COPY ./package.json ./bun.lock ./
|
|
||||||
COPY --from=build --chown=1000:1000 /opt/build/node_modules/ /opt/app/node_modules/
|
|
||||||
COPY --from=build --chown=1000:1000 /opt/build/build /opt/app
|
|
||||||
|
|
||||||
ENTRYPOINT [ "node", "index.js" ]
|
|
||||||
1
devops/.gitignore
vendored
1
devops/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
||||||
data/
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
container_name: postgres
|
|
||||||
image: postgres:alpine
|
|
||||||
ports:
|
|
||||||
- 5432:5432
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: ${DATABASE_NAME}
|
|
||||||
POSTGRES_USER: ${DATABASE_USERNAME}
|
|
||||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
|
||||||
|
|
@ -8,30 +8,27 @@ import ts from 'typescript-eslint';
|
||||||
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
|
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
|
||||||
|
|
||||||
export default ts.config(
|
export default ts.config(
|
||||||
{
|
includeIgnoreFile(gitignorePath),
|
||||||
ignores: ['./strapi']
|
js.configs.recommended,
|
||||||
},
|
...ts.configs.recommended,
|
||||||
includeIgnoreFile(gitignorePath),
|
...svelte.configs['flat/recommended'],
|
||||||
js.configs.recommended,
|
prettier,
|
||||||
...ts.configs.recommended,
|
...svelte.configs['flat/prettier'],
|
||||||
...svelte.configs['flat/recommended'],
|
{
|
||||||
prettier,
|
languageOptions: {
|
||||||
...svelte.configs['flat/prettier'],
|
globals: {
|
||||||
{
|
...globals.browser,
|
||||||
languageOptions: {
|
...globals.node
|
||||||
globals: {
|
}
|
||||||
...globals.browser,
|
}
|
||||||
...globals.node
|
},
|
||||||
}
|
{
|
||||||
}
|
files: ['**/*.svelte'],
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.svelte'],
|
|
||||||
|
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: ts.parser
|
parser: ts.parser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,8 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
|
||||||
"strapi"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev | pino-pretty",
|
"dev": "vite dev | pino-pretty",
|
||||||
"compose:up": "docker compose --env-file .env -p strapi -f devops/docker-compose.dev.yml up -d ",
|
|
||||||
"compose:down": "docker compose -p strapi -f devops/docker-compose.dev.yml down",
|
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
|
|
@ -49,7 +44,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@humanspeak/svelte-markdown": "^0.8.7",
|
"@humanspeak/svelte-markdown": "^0.8.7",
|
||||||
"@lucide/svelte": "^0.516.0",
|
"@lucide/svelte": "^0.516.0",
|
||||||
"@strapi/client": "^1.4.0",
|
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"nodemailer": "^6.10.1",
|
"nodemailer": "^6.10.1",
|
||||||
"pino": "^9.6.0"
|
"pino": "^9.6.0"
|
||||||
|
|
|
||||||
20
src/app.d.ts
vendored
20
src/app.d.ts
vendored
|
|
@ -1,18 +1,14 @@
|
||||||
// See https://svelte.dev/docs/kit/types#app.d.ts
|
// See https://svelte.dev/docs/kit/types#app.d.ts
|
||||||
|
|
||||||
import type { Strapi } from '$lib/server/strapi';
|
|
||||||
|
|
||||||
// for information about these interfaces
|
// for information about these interfaces
|
||||||
declare global {
|
declare global {
|
||||||
namespace App {
|
namespace App {
|
||||||
// interface Error {}
|
// interface Error {}
|
||||||
interface Locals {
|
// interface Locals {}
|
||||||
strapi: Strapi;
|
// interface PageData {}
|
||||||
}
|
// interface PageState {}
|
||||||
// interface PageData {}
|
// interface Platform {}
|
||||||
// interface PageState {}
|
}
|
||||||
// interface Platform {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export {};
|
export { };
|
||||||
|
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
import { strapi, type StrapiClient } from '@strapi/client';
|
|
||||||
|
|
||||||
export class Strapi {
|
|
||||||
public readonly api: string;
|
|
||||||
public readonly uploads: string;
|
|
||||||
|
|
||||||
private readonly client: StrapiClient;
|
|
||||||
|
|
||||||
constructor(url: string, auth: string) {
|
|
||||||
this.api = `${url}/api`;
|
|
||||||
this.uploads = `${url}/uploads`;
|
|
||||||
this.client = strapi({
|
|
||||||
baseURL: this.api,
|
|
||||||
auth: auth
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async SiteBackground() {
|
|
||||||
const background = this.client.single('site-background');
|
|
||||||
|
|
||||||
return await background.find({
|
|
||||||
populate: ['Background']
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async About() {
|
|
||||||
const about = this.client.single('about');
|
|
||||||
|
|
||||||
return await about.find({
|
|
||||||
populate: ['Titles', 'Photo', 'Activities']
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async Blogs() {
|
|
||||||
const blogs = this.client.collection('blogs');
|
|
||||||
|
|
||||||
return await blogs.find({
|
|
||||||
populate: ['Header', 'Topics']
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async Blog(id: string) {
|
|
||||||
const blogs = this.client.collection('blogs');
|
|
||||||
|
|
||||||
return await blogs.findOne(id, {
|
|
||||||
populate: ['Header', 'Topics']
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async Experiences() {
|
|
||||||
const experiences = this.client.collection('experiences');
|
|
||||||
|
|
||||||
return await experiences.find({
|
|
||||||
populate: ['Logo']
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async Education() {
|
|
||||||
const education = this.client.collection('educations');
|
|
||||||
|
|
||||||
return await education.find({});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
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
|
|
||||||
131
strapi/.gitignore
vendored
131
strapi/.gitignore
vendored
|
|
@ -1,131 +0,0 @@
|
||||||
############################
|
|
||||||
# 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
|
|
||||||
.tsbuildinfo
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Node.js
|
|
||||||
############################
|
|
||||||
|
|
||||||
lib-cov
|
|
||||||
lcov.info
|
|
||||||
pids
|
|
||||||
logs
|
|
||||||
results
|
|
||||||
node_modules
|
|
||||||
.node_history
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Package managers
|
|
||||||
############################
|
|
||||||
|
|
||||||
.yarn/*
|
|
||||||
!.yarn/cache
|
|
||||||
!.yarn/unplugged
|
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/sdks
|
|
||||||
!.yarn/versions
|
|
||||||
.pnp.*
|
|
||||||
yarn-error.log
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Tests
|
|
||||||
############################
|
|
||||||
|
|
||||||
coverage
|
|
||||||
|
|
||||||
############################
|
|
||||||
# Strapi
|
|
||||||
############################
|
|
||||||
|
|
||||||
.env
|
|
||||||
license.txt
|
|
||||||
exports
|
|
||||||
.strapi
|
|
||||||
dist
|
|
||||||
build
|
|
||||||
.strapi-updater.json
|
|
||||||
.strapi-cloud.json
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
# Creating multi-stage build for production
|
|
||||||
FROM oven/bun:1.2-alpine AS build
|
|
||||||
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git > /dev/null 2>&1
|
|
||||||
ARG NODE_ENV=production
|
|
||||||
ENV NODE_ENV=${NODE_ENV}
|
|
||||||
|
|
||||||
WORKDIR /opt/
|
|
||||||
COPY package.json bun.lock ./
|
|
||||||
RUN bun add --global node-gyp && bun install --filter 'strapi' --production --frozen-lockfile
|
|
||||||
ENV PATH=/opt/node_modules/.bin:$PATH
|
|
||||||
WORKDIR /opt/app
|
|
||||||
COPY . .
|
|
||||||
RUN bun run build
|
|
||||||
|
|
||||||
# Creating final production image
|
|
||||||
FROM node:18-alpine
|
|
||||||
RUN apk add --no-cache vips-dev
|
|
||||||
ENV 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 ["yarn", "start"]
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
# 🚀 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>
|
|
||||||
2937
strapi/bun.lock
2937
strapi/bun.lock
File diff suppressed because it is too large
Load diff
|
|
@ -1,17 +0,0 @@
|
||||||
export default ({ 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)
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
export default {
|
|
||||||
rest: {
|
|
||||||
defaultLimit: 25,
|
|
||||||
maxLimit: 100,
|
|
||||||
withCount: true
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
export default ({ env }) => {
|
|
||||||
const client = env('DATABASE_CLIENT', 'sqlite');
|
|
||||||
|
|
||||||
const connections = {
|
|
||||||
mysql: {
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
export default [
|
|
||||||
'strapi::logger',
|
|
||||||
'strapi::errors',
|
|
||||||
'strapi::security',
|
|
||||||
'strapi::cors',
|
|
||||||
'strapi::poweredBy',
|
|
||||||
'strapi::query',
|
|
||||||
'strapi::body',
|
|
||||||
'strapi::session',
|
|
||||||
'strapi::favicon',
|
|
||||||
'strapi::public'
|
|
||||||
];
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export default () => ({});
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
export default ({ env }) => ({
|
|
||||||
host: env('HOST', '0.0.0.0'),
|
|
||||||
port: env.int('PORT', 1337),
|
|
||||||
app: {
|
|
||||||
keys: env.array('APP_KEYS')
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 497 B |
|
|
@ -1,42 +0,0 @@
|
||||||
{
|
|
||||||
"name": "strapi",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"private": true,
|
|
||||||
"description": "A Strapi application",
|
|
||||||
"scripts": {
|
|
||||||
"build": "strapi build",
|
|
||||||
"console": "strapi console",
|
|
||||||
"deploy": "strapi deploy",
|
|
||||||
"dev": "strapi develop",
|
|
||||||
"start": "strapi start",
|
|
||||||
"strapi": "strapi",
|
|
||||||
"upgrade": "npx @strapi/upgrade latest",
|
|
||||||
"upgrade:dry": "npx @strapi/upgrade latest --dry"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@strapi/plugin-cloud": "5.22.0",
|
|
||||||
"@strapi/plugin-users-permissions": "5.22.0",
|
|
||||||
"@strapi/strapi": "5.22.0",
|
|
||||||
"fs-extra": "^10.0.0",
|
|
||||||
"mime-types": "^2.1.27",
|
|
||||||
"pg": "8.8.0",
|
|
||||||
"react": "^18.0.0",
|
|
||||||
"react-dom": "^18.0.0",
|
|
||||||
"react-router-dom": "^6.0.0",
|
|
||||||
"styled-components": "^6.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/node": "^20",
|
|
||||||
"@types/react": "^18",
|
|
||||||
"@types/react-dom": "^18",
|
|
||||||
"typescript": "^5"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18.0.0 <=22.x.x",
|
|
||||||
"npm": ">=6.0.0"
|
|
||||||
},
|
|
||||||
"strapi": {
|
|
||||||
"uuid": "e7f1600f-8fe7-49b5-97d0-72fd2127a95a",
|
|
||||||
"installId": "54211862c77407c648c0492bbfb7e1ac47d26f28067f603baf4964f0944db791"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
|
|
||||||
# User-Agent: *
|
|
||||||
# Disallow: /
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
import type { StrapiApp } from '@strapi/strapi/admin';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
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',
|
|
||||||
]
|
|
||||||
},
|
|
||||||
bootstrap(app: StrapiApp) {
|
|
||||||
console.log(app);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "ESNext",
|
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "Bundler",
|
|
||||||
"useDefineForClassFields": true,
|
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
||||||
"allowJs": false,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"strict": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"noEmit": true,
|
|
||||||
"jsx": "react-jsx"
|
|
||||||
},
|
|
||||||
"include": ["../plugins/**/admin/src/**/*", "./"],
|
|
||||||
"exclude": ["node_modules/", "build/", "dist/", "**/*.test.ts"]
|
|
||||||
}
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
import { mergeConfig, type UserConfig } from 'vite';
|
|
||||||
|
|
||||||
export default (config: UserConfig) => {
|
|
||||||
// Important: always return the modified config
|
|
||||||
return mergeConfig(config, {
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
'@': '/src'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "collectionType",
|
|
||||||
"collectionName": "blogs",
|
|
||||||
"info": {
|
|
||||||
"singularName": "blog",
|
|
||||||
"pluralName": "blogs",
|
|
||||||
"displayName": "Blog",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": true
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"Title": {
|
|
||||||
"type": "string",
|
|
||||||
"required": true,
|
|
||||||
"unique": true
|
|
||||||
},
|
|
||||||
"Body": {
|
|
||||||
"type": "richtext",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"Topics": {
|
|
||||||
"displayName": "Tag",
|
|
||||||
"type": "component",
|
|
||||||
"repeatable": true,
|
|
||||||
"component": "shared.tag"
|
|
||||||
},
|
|
||||||
"Header": {
|
|
||||||
"type": "media",
|
|
||||||
"multiple": false,
|
|
||||||
"required": true,
|
|
||||||
"allowedTypes": ["images"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* blog controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::blog.blog');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* blog router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::blog.blog');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* blog service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::blog.blog');
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "collectionType",
|
|
||||||
"collectionName": "projects",
|
|
||||||
"info": {
|
|
||||||
"singularName": "project",
|
|
||||||
"pluralName": "projects",
|
|
||||||
"displayName": "Project",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": true
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"title": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"type": "richtext"
|
|
||||||
},
|
|
||||||
"tags": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "manyToMany",
|
|
||||||
"target": "api::tag.tag",
|
|
||||||
"inversedBy": "projects"
|
|
||||||
},
|
|
||||||
"url": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"embed": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* project controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi'
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::project.project');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* project router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::project.project');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* project service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::project.project');
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "collectionType",
|
|
||||||
"collectionName": "tags",
|
|
||||||
"info": {
|
|
||||||
"singularName": "tag",
|
|
||||||
"pluralName": "tags",
|
|
||||||
"displayName": "Tag",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": true
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"value": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"projects": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "manyToMany",
|
|
||||||
"target": "api::project.project",
|
|
||||||
"mappedBy": "tags"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* tag controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi'
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::tag.tag');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* tag router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::tag.tag');
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
/**
|
|
||||||
* tag service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::tag.tag');
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"collectionName": "components_shared_media",
|
|
||||||
"info": {
|
|
||||||
"displayName": "Media",
|
|
||||||
"icon": "file-video"
|
|
||||||
},
|
|
||||||
"options": {},
|
|
||||||
"attributes": {
|
|
||||||
"file": {
|
|
||||||
"allowedTypes": ["images", "files", "videos"],
|
|
||||||
"type": "media",
|
|
||||||
"multiple": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"collectionName": "components_shared_quotes",
|
|
||||||
"info": {
|
|
||||||
"displayName": "Quote",
|
|
||||||
"icon": "indent"
|
|
||||||
},
|
|
||||||
"options": {},
|
|
||||||
"attributes": {
|
|
||||||
"title": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"type": "text"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"collectionName": "components_shared_rich_texts",
|
|
||||||
"info": {
|
|
||||||
"displayName": "Rich text",
|
|
||||||
"icon": "align-justify",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {},
|
|
||||||
"attributes": {
|
|
||||||
"body": {
|
|
||||||
"type": "richtext"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
{
|
|
||||||
"collectionName": "components_shared_seos",
|
|
||||||
"info": {
|
|
||||||
"name": "Seo",
|
|
||||||
"icon": "allergies",
|
|
||||||
"displayName": "Seo",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {},
|
|
||||||
"attributes": {
|
|
||||||
"metaTitle": {
|
|
||||||
"type": "string",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"metaDescription": {
|
|
||||||
"type": "text",
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"shareImage": {
|
|
||||||
"type": "media",
|
|
||||||
"multiple": false,
|
|
||||||
"required": false,
|
|
||||||
"allowedTypes": ["images"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"collectionName": "components_shared_tags",
|
|
||||||
"info": {
|
|
||||||
"displayName": "Tag",
|
|
||||||
"icon": "priceTag"
|
|
||||||
},
|
|
||||||
"options": {},
|
|
||||||
"attributes": {
|
|
||||||
"Topic": {
|
|
||||||
"type": "enumeration",
|
|
||||||
"enum": ["development", "work", "life"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
// import type { Core } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
/**
|
|
||||||
* An asynchronous register function that runs before
|
|
||||||
* your application is initialized.
|
|
||||||
*
|
|
||||||
* This gives you an opportunity to extend code.
|
|
||||||
*/
|
|
||||||
register(/* { strapi }: { strapi: Core.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 }: { strapi: Core.Strapi } */) {}
|
|
||||||
};
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "CommonJS",
|
|
||||||
"moduleResolution": "Node",
|
|
||||||
"lib": ["ES2020"],
|
|
||||||
"target": "ES2019",
|
|
||||||
"strict": false,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"incremental": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
"noEmitOnError": true,
|
|
||||||
"noImplicitThis": true,
|
|
||||||
"outDir": "dist",
|
|
||||||
"rootDir": "."
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
// Include root files
|
|
||||||
"./",
|
|
||||||
// Include all ts files
|
|
||||||
"./**/*.ts",
|
|
||||||
// Include all js files
|
|
||||||
"./**/*.js",
|
|
||||||
// Force the JSON files in the src folder to be included
|
|
||||||
"src/**/*.json"
|
|
||||||
],
|
|
||||||
|
|
||||||
"exclude": [
|
|
||||||
"node_modules/",
|
|
||||||
"build/",
|
|
||||||
"dist/",
|
|
||||||
".cache/",
|
|
||||||
".tmp/",
|
|
||||||
|
|
||||||
// Do not include admin files in the server compilation
|
|
||||||
"src/admin/",
|
|
||||||
// Do not include test files
|
|
||||||
"**/*.test.*",
|
|
||||||
// Do not include plugins in the server compilation
|
|
||||||
"src/plugins/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
74
strapi/types/generated/components.d.ts
vendored
74
strapi/types/generated/components.d.ts
vendored
|
|
@ -1,74 +0,0 @@
|
||||||
import type { Schema, Struct } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export interface SharedMedia extends Struct.ComponentSchema {
|
|
||||||
collectionName: 'components_shared_media';
|
|
||||||
info: {
|
|
||||||
displayName: 'Media';
|
|
||||||
icon: 'file-video';
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
file: Schema.Attribute.Media<'images' | 'files' | 'videos'>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SharedQuote extends Struct.ComponentSchema {
|
|
||||||
collectionName: 'components_shared_quotes';
|
|
||||||
info: {
|
|
||||||
displayName: 'Quote';
|
|
||||||
icon: 'indent';
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
body: Schema.Attribute.Text;
|
|
||||||
title: Schema.Attribute.String;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SharedRichText extends Struct.ComponentSchema {
|
|
||||||
collectionName: 'components_shared_rich_texts';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Rich text';
|
|
||||||
icon: 'align-justify';
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
body: Schema.Attribute.RichText;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SharedSeo extends Struct.ComponentSchema {
|
|
||||||
collectionName: 'components_shared_seos';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Seo';
|
|
||||||
icon: 'allergies';
|
|
||||||
name: 'Seo';
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
metaDescription: Schema.Attribute.Text & Schema.Attribute.Required;
|
|
||||||
metaTitle: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
shareImage: Schema.Attribute.Media<'images'>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SharedTag extends Struct.ComponentSchema {
|
|
||||||
collectionName: 'components_shared_tags';
|
|
||||||
info: {
|
|
||||||
displayName: 'Tag';
|
|
||||||
icon: 'priceTag';
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
Topic: Schema.Attribute.Enumeration<['development', 'work', 'life']>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '@strapi/strapi' {
|
|
||||||
export module Public {
|
|
||||||
export interface ComponentSchemas {
|
|
||||||
'shared.media': SharedMedia;
|
|
||||||
'shared.quote': SharedQuote;
|
|
||||||
'shared.rich-text': SharedRichText;
|
|
||||||
'shared.seo': SharedSeo;
|
|
||||||
'shared.tag': SharedTag;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
861
strapi/types/generated/contentTypes.d.ts
vendored
861
strapi/types/generated/contentTypes.d.ts
vendored
|
|
@ -1,861 +0,0 @@
|
||||||
import type { Schema, Struct } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export interface AdminApiToken extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_api_tokens';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Api Token';
|
|
||||||
name: 'Api Token';
|
|
||||||
pluralName: 'api-tokens';
|
|
||||||
singularName: 'api-token';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
accessKey: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}> &
|
|
||||||
Schema.Attribute.DefaultTo<''>;
|
|
||||||
expiresAt: Schema.Attribute.DateTime;
|
|
||||||
lastUsedAt: Schema.Attribute.DateTime;
|
|
||||||
lifespan: Schema.Attribute.BigInteger;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::api-token'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
permissions: Schema.Attribute.Relation<'oneToMany', 'admin::api-token-permission'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
type: Schema.Attribute.Enumeration<['read-only', 'full-access', 'custom']> &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.DefaultTo<'read-only'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminApiTokenPermission extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_api_token_permissions';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'API Token Permission';
|
|
||||||
name: 'API Token Permission';
|
|
||||||
pluralName: 'api-token-permissions';
|
|
||||||
singularName: 'api-token-permission';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
action: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::api-token-permission'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
token: Schema.Attribute.Relation<'manyToOne', 'admin::api-token'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminPermission extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'admin_permissions';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Permission';
|
|
||||||
name: 'Permission';
|
|
||||||
pluralName: 'permissions';
|
|
||||||
singularName: 'permission';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
action: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
actionParameters: Schema.Attribute.JSON & Schema.Attribute.DefaultTo<{}>;
|
|
||||||
conditions: Schema.Attribute.JSON & Schema.Attribute.DefaultTo<[]>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::permission'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
properties: Schema.Attribute.JSON & Schema.Attribute.DefaultTo<{}>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
role: Schema.Attribute.Relation<'manyToOne', 'admin::role'>;
|
|
||||||
subject: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminRole extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'admin_roles';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Role';
|
|
||||||
name: 'Role';
|
|
||||||
pluralName: 'roles';
|
|
||||||
singularName: 'role';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
code: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.String;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::role'> & Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
permissions: Schema.Attribute.Relation<'oneToMany', 'admin::permission'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
users: Schema.Attribute.Relation<'manyToMany', 'admin::user'>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminTransferToken extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_transfer_tokens';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Transfer Token';
|
|
||||||
name: 'Transfer Token';
|
|
||||||
pluralName: 'transfer-tokens';
|
|
||||||
singularName: 'transfer-token';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
accessKey: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}> &
|
|
||||||
Schema.Attribute.DefaultTo<''>;
|
|
||||||
expiresAt: Schema.Attribute.DateTime;
|
|
||||||
lastUsedAt: Schema.Attribute.DateTime;
|
|
||||||
lifespan: Schema.Attribute.BigInteger;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::transfer-token'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
permissions: Schema.Attribute.Relation<'oneToMany', 'admin::transfer-token-permission'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminTransferTokenPermission extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_transfer_token_permissions';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Transfer Token Permission';
|
|
||||||
name: 'Transfer Token Permission';
|
|
||||||
pluralName: 'transfer-token-permissions';
|
|
||||||
singularName: 'transfer-token-permission';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
action: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::transfer-token-permission'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
token: Schema.Attribute.Relation<'manyToOne', 'admin::transfer-token'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface AdminUser extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'admin_users';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'User';
|
|
||||||
name: 'User';
|
|
||||||
pluralName: 'users';
|
|
||||||
singularName: 'user';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
blocked: Schema.Attribute.Boolean &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.DefaultTo<false>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
email: Schema.Attribute.Email &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 6;
|
|
||||||
}>;
|
|
||||||
firstname: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
isActive: Schema.Attribute.Boolean &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.DefaultTo<false>;
|
|
||||||
lastname: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
password: Schema.Attribute.Password &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 6;
|
|
||||||
}>;
|
|
||||||
preferedLanguage: Schema.Attribute.String;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
registrationToken: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
resetPasswordToken: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
roles: Schema.Attribute.Relation<'manyToMany', 'admin::role'> & Schema.Attribute.Private;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
username: Schema.Attribute.String;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiBlogBlog extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'blogs';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Blog';
|
|
||||||
pluralName: 'blogs';
|
|
||||||
singularName: 'blog';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: true;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
Body: Schema.Attribute.RichText & Schema.Attribute.Required;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
Header: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::blog.blog'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
Title: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique;
|
|
||||||
Topics: Schema.Attribute.Component<'shared.tag', true>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiProjectProject extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'projects';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Project';
|
|
||||||
pluralName: 'projects';
|
|
||||||
singularName: 'project';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: true;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
body: Schema.Attribute.RichText;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
embed: Schema.Attribute.String;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::project.project'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
tags: Schema.Attribute.Relation<'manyToMany', 'api::tag.tag'>;
|
|
||||||
title: Schema.Attribute.String;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
url: Schema.Attribute.String;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiTagTag extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'tags';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Tag';
|
|
||||||
pluralName: 'tags';
|
|
||||||
singularName: 'tag';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: true;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::tag.tag'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
projects: Schema.Attribute.Relation<'manyToMany', 'api::project.project'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
value: Schema.Attribute.String;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginContentReleasesRelease extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_releases';
|
|
||||||
info: {
|
|
||||||
displayName: 'Release';
|
|
||||||
pluralName: 'releases';
|
|
||||||
singularName: 'release';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
actions: Schema.Attribute.Relation<'oneToMany', 'plugin::content-releases.release-action'>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::content-releases.release'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
releasedAt: Schema.Attribute.DateTime;
|
|
||||||
scheduledAt: Schema.Attribute.DateTime;
|
|
||||||
status: Schema.Attribute.Enumeration<['ready', 'blocked', 'failed', 'done', 'empty']> &
|
|
||||||
Schema.Attribute.Required;
|
|
||||||
timezone: Schema.Attribute.String;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginContentReleasesReleaseAction extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_release_actions';
|
|
||||||
info: {
|
|
||||||
displayName: 'Release Action';
|
|
||||||
pluralName: 'release-actions';
|
|
||||||
singularName: 'release-action';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
contentType: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
entryDocumentId: Schema.Attribute.String;
|
|
||||||
isEntryValid: Schema.Attribute.Boolean;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<
|
|
||||||
'oneToMany',
|
|
||||||
'plugin::content-releases.release-action'
|
|
||||||
> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
release: Schema.Attribute.Relation<'manyToOne', 'plugin::content-releases.release'>;
|
|
||||||
type: Schema.Attribute.Enumeration<['publish', 'unpublish']> & Schema.Attribute.Required;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginI18NLocale extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'i18n_locale';
|
|
||||||
info: {
|
|
||||||
collectionName: 'locales';
|
|
||||||
description: '';
|
|
||||||
displayName: 'Locale';
|
|
||||||
pluralName: 'locales';
|
|
||||||
singularName: 'locale';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
code: Schema.Attribute.String & Schema.Attribute.Unique;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::i18n.locale'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.SetMinMax<
|
|
||||||
{
|
|
||||||
max: 50;
|
|
||||||
min: 1;
|
|
||||||
},
|
|
||||||
number
|
|
||||||
>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginReviewWorkflowsWorkflow extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_workflows';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Workflow';
|
|
||||||
name: 'Workflow';
|
|
||||||
pluralName: 'workflows';
|
|
||||||
singularName: 'workflow';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
contentTypes: Schema.Attribute.JSON &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.DefaultTo<'[]'>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::review-workflows.workflow'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
stageRequiredToPublish: Schema.Attribute.Relation<
|
|
||||||
'oneToOne',
|
|
||||||
'plugin::review-workflows.workflow-stage'
|
|
||||||
>;
|
|
||||||
stages: Schema.Attribute.Relation<'oneToMany', 'plugin::review-workflows.workflow-stage'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginReviewWorkflowsWorkflowStage extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'strapi_workflows_stages';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Stages';
|
|
||||||
name: 'Workflow Stage';
|
|
||||||
pluralName: 'workflow-stages';
|
|
||||||
singularName: 'workflow-stage';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
version: '1.1.0';
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
color: Schema.Attribute.String & Schema.Attribute.DefaultTo<'#4945FF'>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<
|
|
||||||
'oneToMany',
|
|
||||||
'plugin::review-workflows.workflow-stage'
|
|
||||||
> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String;
|
|
||||||
permissions: Schema.Attribute.Relation<'manyToMany', 'admin::permission'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
workflow: Schema.Attribute.Relation<'manyToOne', 'plugin::review-workflows.workflow'>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginUploadFile extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'files';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'File';
|
|
||||||
pluralName: 'files';
|
|
||||||
singularName: 'file';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
alternativeText: Schema.Attribute.String;
|
|
||||||
caption: Schema.Attribute.String;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
ext: Schema.Attribute.String;
|
|
||||||
folder: Schema.Attribute.Relation<'manyToOne', 'plugin::upload.folder'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
folderPath: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
formats: Schema.Attribute.JSON;
|
|
||||||
hash: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
height: Schema.Attribute.Integer;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::upload.file'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
mime: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
name: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
previewUrl: Schema.Attribute.String;
|
|
||||||
provider: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
provider_metadata: Schema.Attribute.JSON;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
related: Schema.Attribute.Relation<'morphToMany'>;
|
|
||||||
size: Schema.Attribute.Decimal & Schema.Attribute.Required;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
url: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
width: Schema.Attribute.Integer;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginUploadFolder extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'upload_folders';
|
|
||||||
info: {
|
|
||||||
displayName: 'Folder';
|
|
||||||
pluralName: 'folders';
|
|
||||||
singularName: 'folder';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
children: Schema.Attribute.Relation<'oneToMany', 'plugin::upload.folder'>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
files: Schema.Attribute.Relation<'oneToMany', 'plugin::upload.file'>;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::upload.folder'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
parent: Schema.Attribute.Relation<'manyToOne', 'plugin::upload.folder'>;
|
|
||||||
path: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 1;
|
|
||||||
}>;
|
|
||||||
pathId: Schema.Attribute.Integer & Schema.Attribute.Required & Schema.Attribute.Unique;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginUsersPermissionsPermission extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'up_permissions';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Permission';
|
|
||||||
name: 'permission';
|
|
||||||
pluralName: 'permissions';
|
|
||||||
singularName: 'permission';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
action: Schema.Attribute.String & Schema.Attribute.Required;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::users-permissions.permission'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
role: Schema.Attribute.Relation<'manyToOne', 'plugin::users-permissions.role'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginUsersPermissionsRole extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'up_roles';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'Role';
|
|
||||||
name: 'role';
|
|
||||||
pluralName: 'roles';
|
|
||||||
singularName: 'role';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
'content-manager': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
'content-type-builder': {
|
|
||||||
visible: false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.String;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::users-permissions.role'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
name: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 3;
|
|
||||||
}>;
|
|
||||||
permissions: Schema.Attribute.Relation<'oneToMany', 'plugin::users-permissions.permission'>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
type: Schema.Attribute.String & Schema.Attribute.Unique;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
users: Schema.Attribute.Relation<'oneToMany', 'plugin::users-permissions.user'>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginUsersPermissionsUser extends Struct.CollectionTypeSchema {
|
|
||||||
collectionName: 'up_users';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'User';
|
|
||||||
name: 'user';
|
|
||||||
pluralName: 'users';
|
|
||||||
singularName: 'user';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: false;
|
|
||||||
timestamps: true;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
blocked: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
|
||||||
confirmationToken: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
confirmed: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo<false>;
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
email: Schema.Attribute.Email &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 6;
|
|
||||||
}>;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<'oneToMany', 'plugin::users-permissions.user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
password: Schema.Attribute.Password &
|
|
||||||
Schema.Attribute.Private &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 6;
|
|
||||||
}>;
|
|
||||||
provider: Schema.Attribute.String;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
resetPasswordToken: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
role: Schema.Attribute.Relation<'manyToOne', 'plugin::users-permissions.role'>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;
|
|
||||||
username: Schema.Attribute.String &
|
|
||||||
Schema.Attribute.Required &
|
|
||||||
Schema.Attribute.Unique &
|
|
||||||
Schema.Attribute.SetMinMaxLength<{
|
|
||||||
minLength: 3;
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '@strapi/strapi' {
|
|
||||||
export module Public {
|
|
||||||
export interface ContentTypeSchemas {
|
|
||||||
'admin::api-token': AdminApiToken;
|
|
||||||
'admin::api-token-permission': AdminApiTokenPermission;
|
|
||||||
'admin::permission': AdminPermission;
|
|
||||||
'admin::role': AdminRole;
|
|
||||||
'admin::transfer-token': AdminTransferToken;
|
|
||||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
|
||||||
'admin::user': AdminUser;
|
|
||||||
'api::blog.blog': ApiBlogBlog;
|
|
||||||
'api::project.project': ApiProjectProject;
|
|
||||||
'api::tag.tag': ApiTagTag;
|
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
|
||||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
|
||||||
'plugin::i18n.locale': PluginI18NLocale;
|
|
||||||
'plugin::review-workflows.workflow': PluginReviewWorkflowsWorkflow;
|
|
||||||
'plugin::review-workflows.workflow-stage': PluginReviewWorkflowsWorkflowStage;
|
|
||||||
'plugin::upload.file': PluginUploadFile;
|
|
||||||
'plugin::upload.folder': PluginUploadFolder;
|
|
||||||
'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
|
|
||||||
'plugin::users-permissions.role': PluginUsersPermissionsRole;
|
|
||||||
'plugin::users-permissions.user': PluginUsersPermissionsUser;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue