Compare commits
No commits in common. "ebb8a9562405d205fede7477ea1a8d91adb00df0" and "6f9b2930828156b699faa106fc00b8d947818e85" have entirely different histories.
ebb8a95624
...
6f9b293082
71 changed files with 48726 additions and 39938 deletions
|
|
@ -1,26 +0,0 @@
|
|||
/**
|
||||
* This file was automatically generated by Strapi.
|
||||
* Any modifications made will be discarded.
|
||||
*/
|
||||
import ckeditor5 from "@_sh/strapi-plugin-ckeditor/strapi-admin";
|
||||
import documentation from "@strapi/plugin-documentation/strapi-admin";
|
||||
import i18N from "@strapi/plugin-i18n/strapi-admin";
|
||||
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
|
||||
import menus from "strapi-plugin-menus/strapi-admin";
|
||||
import navigation from "strapi-plugin-navigation/strapi-admin";
|
||||
import responsiveImage from "strapi-plugin-responsive-image/strapi-admin";
|
||||
import activitypubIntegration from "../../src/plugins/activitypub-integration/strapi-admin";
|
||||
import { renderAdmin } from "@strapi/strapi/admin";
|
||||
|
||||
renderAdmin(document.getElementById("strapi"), {
|
||||
plugins: {
|
||||
ckeditor5: ckeditor5,
|
||||
documentation: documentation,
|
||||
i18n: i18N,
|
||||
"users-permissions": usersPermissions,
|
||||
menus: menus,
|
||||
navigation: navigation,
|
||||
"responsive-image": responsiveImage,
|
||||
"activitypub-integration": activitypubIntegration,
|
||||
},
|
||||
});
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
<!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>
|
||||
783
.yarn/releases/yarn-3.2.3.cjs
vendored
783
.yarn/releases/yarn-3.2.3.cjs
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +0,0 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.2.3.cjs
|
||||
|
|
@ -1,177 +0,0 @@
|
|||
globalThis.CKEditorConfig = {
|
||||
|
||||
/* By default configs and theme
|
||||
objects will be spread with
|
||||
default configs and theme
|
||||
these two properties specified below
|
||||
allow you to redefine
|
||||
default objects completely: */
|
||||
|
||||
//configsOverwrite:true,
|
||||
//themeOverwrite:true,
|
||||
|
||||
/* Here you can redefine default configs
|
||||
or add completely new ones.
|
||||
Each config includes:
|
||||
"styles", "field" and "editorConfig" properties.
|
||||
Property "field" is required. */
|
||||
|
||||
configs:{
|
||||
toolbar:{
|
||||
// styles:``,
|
||||
// field:{},
|
||||
// editorConfig:{}
|
||||
},
|
||||
custom:{
|
||||
|
||||
/* Styles for this specific editor.
|
||||
This will be passed into the editor's parent container. */
|
||||
|
||||
styles:`
|
||||
// --ck-focus-ring:3px dashed #5CB176;
|
||||
|
||||
// .ck.ck-content.ck-editor__editable {
|
||||
// &.ck-focused:not(.ck-editor__nested-editable) {
|
||||
// border: var(--ck-focus-ring) !important;
|
||||
// }
|
||||
// }
|
||||
// .ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-blurred{
|
||||
// min-height: 400px;
|
||||
// max-height: 400px;
|
||||
// }
|
||||
// .ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-focused{
|
||||
// min-height: 400px;
|
||||
// max-height: 1700px;
|
||||
// }
|
||||
`,
|
||||
|
||||
/* Custom field option */
|
||||
field: {
|
||||
key: "custom",
|
||||
value: "custom",
|
||||
metadatas: {
|
||||
intlLabel: {
|
||||
id: "ckeditor5.preset.custom.label",
|
||||
defaultMessage: "Custom version",
|
||||
},
|
||||
},
|
||||
},
|
||||
/* CKEditor configuration */
|
||||
editorConfig:{
|
||||
/* All available built-in plugins
|
||||
you can find in admin/src/components/Input/CKEditor/configs/base.js */
|
||||
plugins: [
|
||||
CKEditor5.autoformat.Autoformat,
|
||||
CKEditor5.basicStyles.Bold,
|
||||
CKEditor5.basicStyles.Italic,
|
||||
CKEditor5.blockQuote.BlockQuote,
|
||||
CKEditor5.essentials.Essentials,
|
||||
CKEditor5.heading.Heading,
|
||||
CKEditor5.image.Image,
|
||||
CKEditor5.image.ImageCaption,
|
||||
CKEditor5.image.ImageStyle,
|
||||
CKEditor5.image.ImageToolbar,
|
||||
CKEditor5.image.ImageUpload,
|
||||
CKEditor5.image.ImageResizeEditing,
|
||||
CKEditor5.image.ImageResizeHandles,
|
||||
CKEditor5.indent.Indent,
|
||||
CKEditor5.link.Link,
|
||||
CKEditor5.list.List,
|
||||
CKEditor5.mediaEmbed.MediaEmbed,
|
||||
CKEditor5.paragraph.Paragraph,
|
||||
CKEditor5.pasteFromOffice.PasteFromOffice,
|
||||
CKEditor5.sourceEditing.SourceEditing,
|
||||
CKEditor5.table.Table,
|
||||
CKEditor5.table.TableToolbar,
|
||||
CKEditor5.table.TableColumnResize,
|
||||
CKEditor5.table.TableCaption,
|
||||
CKEditor5.strapiPlugins.StrapiMediaLib,
|
||||
CKEditor5.strapiPlugins.StrapiUploadAdapter,
|
||||
],
|
||||
|
||||
/* By default, for plugin's UI will use
|
||||
the language defined in this file
|
||||
or the preferred language from strapi's user config
|
||||
and 'en' as a fallback.
|
||||
language.ui -> preferred language -> 'en' */
|
||||
|
||||
/* For content it will use language based on i18n (if! ignorei18n)
|
||||
or language.content defined here
|
||||
and it will use UI language as a fallback.
|
||||
ignorei18n ? language.content : i18n; -> language.ui */
|
||||
|
||||
language:{
|
||||
// ignorei18n: true,
|
||||
// ui:'he',
|
||||
// content:'he'
|
||||
},
|
||||
mediaEmbed: {
|
||||
previewsInData: true
|
||||
},
|
||||
toolbar: [
|
||||
'heading',
|
||||
'|',
|
||||
'bold', 'italic', 'link', 'bulletedList', 'numberedList',
|
||||
'|',
|
||||
'uploadImage', 'strapiMediaLib', 'insertTable','mediaEmbed',
|
||||
'|',
|
||||
'blockQuote',
|
||||
'sourceEditing',
|
||||
'|',
|
||||
'undo', 'redo'
|
||||
],
|
||||
link : {
|
||||
addTargetToExternalLinks: true,
|
||||
decorators: [
|
||||
{
|
||||
mode: 'manual',
|
||||
label: 'External Link',
|
||||
attributes: {
|
||||
target: '_blank',
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
heading: {
|
||||
options: [
|
||||
{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
|
||||
{ model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' },
|
||||
{ model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' },
|
||||
{ model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' },
|
||||
{ model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4' },
|
||||
]
|
||||
},
|
||||
image: {
|
||||
toolbar: [
|
||||
'imageStyle:inline',
|
||||
'imageStyle:block',
|
||||
'imageStyle:side',
|
||||
'|',
|
||||
'toggleImageCaption',
|
||||
'imageTextAlternative'
|
||||
]
|
||||
},
|
||||
table: {
|
||||
contentToolbar: [
|
||||
'tableColumn',
|
||||
'tableRow',
|
||||
'mergeTableCells',
|
||||
'|',
|
||||
'toggleTableCaption'
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/* Here you can customize the plugin's theme.
|
||||
This will be passed as "createGlobalStyle". */
|
||||
theme:{
|
||||
// common:``,
|
||||
// light:``,
|
||||
// dark:``,
|
||||
// additional:``
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,8 +9,8 @@ module.exports = ({ env }) => ({
|
|||
database: env('DATABASE_NAME', 'strapi'),
|
||||
user: env('DATABASE_USERNAME', 'strapi'),
|
||||
password: env('DATABASE_PASSWORD', 'strapi'),
|
||||
// ssl: {
|
||||
// rejectUnauthorized: env.bool('DATABASE_SSL_SELF', false), // For self-signed certificates
|
||||
// },
|
||||
ssl: {
|
||||
rejectUnauthorized: env.bool('DATABASE_SSL_SELF', false), // For self-signed certificates
|
||||
},
|
||||
},
|
||||
}});
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
module.exports = () => {
|
||||
return {
|
||||
ckeditor5: {
|
||||
enabled: true,
|
||||
},
|
||||
'activitypub-integration': {
|
||||
enabled: true,
|
||||
resolve: './src/plugins/activitypub-integration' // path to plugin folder
|
||||
}
|
||||
ckeditor: true
|
||||
}
|
||||
}
|
||||
35532
package-lock.json
generated
35532
package-lock.json
generated
File diff suppressed because it is too large
Load diff
31
package.json
31
package.json
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "angrybeanie-cms",
|
||||
"private": true,
|
||||
"version": "0.2.0",
|
||||
"version": "0.1.0",
|
||||
"description": "A Strapi application",
|
||||
"scripts": {
|
||||
"develop": "strapi develop",
|
||||
|
|
@ -10,22 +10,15 @@
|
|||
"strapi": "strapi"
|
||||
},
|
||||
"dependencies": {
|
||||
"@_sh/strapi-plugin-ckeditor": "^2.0.4",
|
||||
"@ckeditor/ckeditor5-block-quote": "^39.0.0",
|
||||
"@strapi/plugin-documentation": "^4.25.17",
|
||||
"@strapi/plugin-i18n": "4.25.17",
|
||||
"@strapi/plugin-users-permissions": "4.25.17",
|
||||
"@strapi/strapi": "4.25.17",
|
||||
"@_sh/strapi-plugin-ckeditor": "^1.1.0",
|
||||
"@strapi/plugin-documentation": "^4.1.12",
|
||||
"@strapi/plugin-i18n": "4.1.12",
|
||||
"@strapi/plugin-users-permissions": "4.1.12",
|
||||
"@strapi/strapi": "4.1.12",
|
||||
"better-sqlite3": "7.4.6",
|
||||
"mysql": "^2.18.1",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"strapi-plugin-local-image-sharp": "^1.7.0",
|
||||
"strapi-plugin-menus": "^1.6.1",
|
||||
"strapi-plugin-navigation": "^2.4.0",
|
||||
"strapi-plugin-responsive-image": "^1.2.0",
|
||||
"styled-components": "^5.2.1"
|
||||
"strapi-plugin-menus": "^0.3.2",
|
||||
"strapi-plugin-navigation": "^2.0.13"
|
||||
},
|
||||
"author": {
|
||||
"name": "A Strapi developer"
|
||||
|
|
@ -34,12 +27,8 @@
|
|||
"uuid": "5f15c671-9d39-448f-ad09-9c67c7e50dea"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.x.x <=20.x.x",
|
||||
"node": ">=12.x.x <=16.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@3.2.3",
|
||||
"devDependencies": {
|
||||
"ajv": "^8.17.1"
|
||||
}
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@
|
|||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"Body": {
|
||||
"type": "richtext",
|
||||
"required": true
|
||||
},
|
||||
"FeatureImage": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
|
|
@ -48,17 +52,6 @@
|
|||
"relation": "manyToOne",
|
||||
"target": "api::project.project",
|
||||
"inversedBy": "articles"
|
||||
},
|
||||
"FeaturedImageCaption": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"FullBody": {
|
||||
"type": "customField",
|
||||
"options": {
|
||||
"preset": "custom"
|
||||
},
|
||||
"customField": "plugin::ckeditor5.CKEditor"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/articles"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -33,10 +33,6 @@
|
|||
"relation": "manyToMany",
|
||||
"target": "api::gallery.gallery",
|
||||
"mappedBy": "gallery_images"
|
||||
},
|
||||
"Slug": {
|
||||
"type": "uid",
|
||||
"targetField": "Title"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/gallery-images"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/galleries"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/pages"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
"type": "richtext",
|
||||
"required": true
|
||||
},
|
||||
"Transcript": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"Audio_MP3": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
|
|
@ -45,20 +48,6 @@
|
|||
"allowedTypes": [
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"Transcript": {
|
||||
"type": "customField",
|
||||
"options": {
|
||||
"preset": "custom"
|
||||
},
|
||||
"customField": "plugin::ckeditor5.CKEditor"
|
||||
},
|
||||
"Subtitles": {
|
||||
"allowedTypes": [
|
||||
"files"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/podcast-episodes"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/podcast-series"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/projects"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,28 +146,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/tags"
|
||||
|
|
@ -327,7 +305,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -407,7 +385,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -498,7 +476,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,75 @@
|
|||
{
|
||||
"/upload/files/count": {
|
||||
"get": {
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/UploadFileResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Upload - File"
|
||||
],
|
||||
"parameters": [],
|
||||
"operationId": "get/upload/files/count"
|
||||
}
|
||||
},
|
||||
"/upload/files": {
|
||||
"get": {
|
||||
"responses": {
|
||||
|
|
@ -80,7 +151,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -146,27 +217,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object"
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/upload/files"
|
||||
|
|
@ -247,7 +297,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -328,7 +378,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
const imageManipulation = require("strapi-plugin-responsive-image/server/services/image-manipulation");
|
||||
|
||||
module.exports = (plugin) => {
|
||||
plugin.services["image-manipulation"] = imageManipulation;
|
||||
|
||||
return plugin;
|
||||
};
|
||||
|
|
@ -145,7 +145,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -299,27 +299,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object"
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/users-permissions/roles"
|
||||
|
|
@ -479,7 +458,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -570,7 +549,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -729,7 +708,7 @@
|
|||
{
|
||||
"name": "pagination[withCount]",
|
||||
"in": "query",
|
||||
"description": "Return page/pageSize (default: true)",
|
||||
"description": "Retun page/pageSize (default: true)",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
|
|
@ -795,27 +774,6 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "filters",
|
||||
"in": "query",
|
||||
"description": "Filters to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "object"
|
||||
},
|
||||
"style": "deepObject"
|
||||
},
|
||||
{
|
||||
"name": "locale",
|
||||
"in": "query",
|
||||
"description": "Locale to apply",
|
||||
"deprecated": false,
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"operationId": "get/users"
|
||||
|
|
@ -1046,7 +1004,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -1126,7 +1084,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
@ -1217,7 +1175,7 @@
|
|||
"deprecated": false,
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "number"
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
# Strapi plugin activitypub-integration
|
||||
|
||||
A quick description of activitypub-integration.
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* Initializer
|
||||
*
|
||||
*/
|
||||
|
||||
import { useEffect, useRef } from 'react';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
type InitializerProps = {
|
||||
setPlugin: (id: string) => void;
|
||||
};
|
||||
|
||||
const Initializer = ({ setPlugin }: InitializerProps) => {
|
||||
const ref = useRef(setPlugin);
|
||||
|
||||
useEffect(() => {
|
||||
ref.current(pluginId);
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default Initializer;
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* PluginIcon
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Puzzle } from '@strapi/icons';
|
||||
|
||||
const PluginIcon = () => <Puzzle />;
|
||||
|
||||
export default PluginIcon;
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
import { prefixPluginTranslations } from '@strapi/helper-plugin';
|
||||
|
||||
import pluginPkg from '../../package.json';
|
||||
import pluginId from './pluginId';
|
||||
import Initializer from './components/Initializer';
|
||||
import PluginIcon from './components/PluginIcon';
|
||||
|
||||
const name = pluginPkg.strapi.name;
|
||||
|
||||
export default {
|
||||
register(app: any) {
|
||||
app.addMenuLink({
|
||||
to: `/plugins/${pluginId}`,
|
||||
icon: PluginIcon,
|
||||
intlLabel: {
|
||||
id: `${pluginId}.plugin.name`,
|
||||
defaultMessage: name,
|
||||
},
|
||||
Component: async () => {
|
||||
const component = await import(/* webpackChunkName: "[request]" */ './pages/App');
|
||||
|
||||
return component;
|
||||
},
|
||||
permissions: [
|
||||
// Uncomment to set the permissions of the plugin here
|
||||
// {
|
||||
// action: '', // the action name should be plugin::plugin-name.actionType
|
||||
// subject: null,
|
||||
// },
|
||||
],
|
||||
});
|
||||
const plugin = {
|
||||
id: pluginId,
|
||||
initializer: Initializer,
|
||||
isReady: false,
|
||||
name,
|
||||
};
|
||||
|
||||
app.registerPlugin(plugin);
|
||||
},
|
||||
|
||||
bootstrap(app: any) {},
|
||||
|
||||
async registerTrads(app: any) {
|
||||
const { locales } = app;
|
||||
|
||||
const importedTrads = await Promise.all(
|
||||
(locales as any[]).map((locale) => {
|
||||
return import(`./translations/${locale}.json`)
|
||||
.then(({ default: data }) => {
|
||||
return {
|
||||
data: prefixPluginTranslations(data, pluginId),
|
||||
locale,
|
||||
};
|
||||
})
|
||||
.catch(() => {
|
||||
return {
|
||||
data: {},
|
||||
locale,
|
||||
};
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
return Promise.resolve(importedTrads);
|
||||
},
|
||||
};
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* This component is the skeleton around the actual pages, and should only
|
||||
* contain code that should be seen on all pages. (e.g. navigation bar)
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import { AnErrorOccurred } from '@strapi/helper-plugin';
|
||||
import pluginId from '../../pluginId';
|
||||
import HomePage from '../HomePage';
|
||||
|
||||
const App = () => {
|
||||
return (
|
||||
<div>
|
||||
<Switch>
|
||||
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
|
||||
<Route component={AnErrorOccurred} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* HomePage
|
||||
*
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
const HomePage = () => {
|
||||
return (
|
||||
<div>
|
||||
<h1>{pluginId}'s HomePage</h1>
|
||||
<p>Happy coding</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default HomePage;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import pluginPkg from '../../package.json';
|
||||
|
||||
const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, '');
|
||||
|
||||
export default pluginId;
|
||||
|
|
@ -1 +0,0 @@
|
|||
{}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import pluginId from '../pluginId';
|
||||
|
||||
const getTrad = (id: string) => `${pluginId}.${id}`;
|
||||
|
||||
export default getTrad;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
declare module '@strapi/design-system/*';
|
||||
declare module '@strapi/design-system';
|
||||
declare module '@strapi/icons';
|
||||
declare module '@strapi/icons/*';
|
||||
declare module '@strapi/helper-plugin';
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = ({ strapi }) => {
|
||||
// bootstrap phase
|
||||
};
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
default: {},
|
||||
validator() { },
|
||||
};
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {};
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const my_controller_1 = __importDefault(require("./my-controller"));
|
||||
exports.default = {
|
||||
myController: my_controller_1.default,
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = ({ strapi }) => ({
|
||||
index(ctx) {
|
||||
ctx.body = strapi
|
||||
.plugin('activitypub-integration')
|
||||
.service('myService')
|
||||
.getWelcomeMessage();
|
||||
},
|
||||
});
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = ({ strapi }) => {
|
||||
// destroy phase
|
||||
};
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const register_1 = __importDefault(require("./register"));
|
||||
const bootstrap_1 = __importDefault(require("./bootstrap"));
|
||||
const destroy_1 = __importDefault(require("./destroy"));
|
||||
const config_1 = __importDefault(require("./config"));
|
||||
const content_types_1 = __importDefault(require("./content-types"));
|
||||
const controllers_1 = __importDefault(require("./controllers"));
|
||||
const routes_1 = __importDefault(require("./routes"));
|
||||
const middlewares_1 = __importDefault(require("./middlewares"));
|
||||
const policies_1 = __importDefault(require("./policies"));
|
||||
const services_1 = __importDefault(require("./services"));
|
||||
exports.default = {
|
||||
register: register_1.default,
|
||||
bootstrap: bootstrap_1.default,
|
||||
destroy: destroy_1.default,
|
||||
config: config_1.default,
|
||||
controllers: controllers_1.default,
|
||||
routes: routes_1.default,
|
||||
services: services_1.default,
|
||||
contentTypes: content_types_1.default,
|
||||
policies: policies_1.default,
|
||||
middlewares: middlewares_1.default,
|
||||
};
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {};
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {};
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = ({ strapi }) => {
|
||||
// registeration phase
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = [
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/',
|
||||
handler: 'myController.index',
|
||||
config: {
|
||||
policies: [],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const my_service_1 = __importDefault(require("./my-service"));
|
||||
exports.default = {
|
||||
myService: my_service_1.default,
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = ({ strapi }) => ({
|
||||
getWelcomeMessage() {
|
||||
return 'Welcome to Strapi 🚀';
|
||||
},
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,51 +0,0 @@
|
|||
{
|
||||
"name": "activitypub-integration",
|
||||
"version": "0.0.0",
|
||||
"description": "This is the description of the plugin.",
|
||||
"strapi": {
|
||||
"name": "activitypub-integration",
|
||||
"description": "Description of activitypub-integration plugin",
|
||||
"kind": "plugin"
|
||||
},
|
||||
"dependencies": {
|
||||
"@strapi/design-system": "^1.6.3",
|
||||
"@strapi/helper-plugin": "^4.6.0",
|
||||
"@strapi/icons": "^1.6.3",
|
||||
"prop-types": "^15.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@strapi/typescript-utils": "^4.6.0",
|
||||
"@types/react": "^17.0.53",
|
||||
"@types/react-dom": "^17.0.18",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"styled-components": "^5.3.6",
|
||||
"typescript": "5.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"styled-components": "^5.3.6"
|
||||
},
|
||||
"author": {
|
||||
"name": "A Strapi developer"
|
||||
},
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "A Strapi developer"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.19.1 <=18.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"develop": "tsc -p tsconfig.server.json -w",
|
||||
"build": "tsc -p tsconfig.server.json"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import { Strapi } from '@strapi/strapi';
|
||||
|
||||
export default ({ strapi }: { strapi: Strapi }) => {
|
||||
// bootstrap phase
|
||||
};
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
export default {
|
||||
default: {},
|
||||
validator() {},
|
||||
};
|
||||
|
|
@ -1 +0,0 @@
|
|||
export default {};
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import myController from './my-controller';
|
||||
|
||||
export default {
|
||||
myController,
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
import { Strapi } from '@strapi/strapi';
|
||||
|
||||
export default ({ strapi }: { strapi: Strapi }) => ({
|
||||
index(ctx) {
|
||||
ctx.body = strapi
|
||||
.plugin('activitypub-integration')
|
||||
.service('myService')
|
||||
.getWelcomeMessage();
|
||||
},
|
||||
});
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import { Strapi } from '@strapi/strapi';
|
||||
|
||||
export default ({ strapi }: { strapi: Strapi }) => {
|
||||
// destroy phase
|
||||
};
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
import register from './register';
|
||||
import bootstrap from './bootstrap';
|
||||
import destroy from './destroy';
|
||||
import config from './config';
|
||||
import contentTypes from './content-types';
|
||||
import controllers from './controllers';
|
||||
import routes from './routes';
|
||||
import middlewares from './middlewares';
|
||||
import policies from './policies';
|
||||
import services from './services';
|
||||
|
||||
export default {
|
||||
register,
|
||||
bootstrap,
|
||||
destroy,
|
||||
config,
|
||||
controllers,
|
||||
routes,
|
||||
services,
|
||||
contentTypes,
|
||||
policies,
|
||||
middlewares,
|
||||
};
|
||||
|
|
@ -1 +0,0 @@
|
|||
export default {};
|
||||
|
|
@ -1 +0,0 @@
|
|||
export default {};
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import { Strapi } from '@strapi/strapi';
|
||||
|
||||
export default ({ strapi }: { strapi: Strapi }) => {
|
||||
// registeration phase
|
||||
};
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
export default [
|
||||
{
|
||||
method: 'GET',
|
||||
path: '/',
|
||||
handler: 'myController.index',
|
||||
config: {
|
||||
policies: [],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import myService from './my-service';
|
||||
|
||||
export default {
|
||||
myService,
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import { Strapi } from '@strapi/strapi';
|
||||
|
||||
export default ({ strapi }: { strapi: Strapi }) => ({
|
||||
getWelcomeMessage() {
|
||||
return 'Welcome to Strapi 🚀';
|
||||
},
|
||||
});
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = require('./admin/src').default;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = require('./dist/server');
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"extends": "@strapi/typescript-utils/tsconfigs/admin",
|
||||
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"strict": true
|
||||
},
|
||||
|
||||
"include": ["admin", "custom.d.ts"],
|
||||
|
||||
"exclude": [
|
||||
"node_modules/",
|
||||
"dist/",
|
||||
|
||||
// Do not include server files in the server compilation
|
||||
"server/",
|
||||
// Do not include test files
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"extends": "@strapi/typescript-utils/tsconfigs/server",
|
||||
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "."
|
||||
},
|
||||
|
||||
"include": [
|
||||
// Include the root directory
|
||||
"server",
|
||||
// Force the JSON files in the src folder to be included
|
||||
"server/**/*.json"
|
||||
],
|
||||
|
||||
"exclude": [
|
||||
"node_modules/",
|
||||
"dist/",
|
||||
|
||||
// Do not include admin files in the server compilation
|
||||
"admin/",
|
||||
// Do not include test files
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
||||
5
types/generated/components.d.ts
vendored
5
types/generated/components.d.ts
vendored
|
|
@ -1,5 +0,0 @@
|
|||
import type { Attribute, Schema } from '@strapi/strapi';
|
||||
|
||||
declare module '@strapi/types' {
|
||||
export module Shared {}
|
||||
}
|
||||
1459
types/generated/contentTypes.d.ts
vendored
1459
types/generated/contentTypes.d.ts
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue