Skip to content

Commit

Permalink
Strapi version 5 (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Bäck <[email protected]>
  • Loading branch information
marnym and backjonas authored Dec 8, 2024
1 parent c97f9bb commit 6dc18f4
Show file tree
Hide file tree
Showing 5 changed files with 4,098 additions and 3,389 deletions.
3 changes: 2 additions & 1 deletion .strapi/client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<!--
This file was automatically generated by Strapi.
Expand Down Expand Up @@ -58,5 +58,6 @@ <h1>JavaScript disabled</h1>
</div>
</div></noscript
>
<script type="module" src="/.strapi/client/app.js"></script>
</body>
</html>
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,26 @@
"build": "strapi build",
"cs": "config-sync",
"develop": "strapi develop",
"postinstall": "patch-package",
"start": "strapi start",
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-users-permissions": "^4.25.0",
"@strapi/strapi": "^4.25.1",
"patch-package": "^8.0.0",
"@strapi/plugin-users-permissions": "^5.4.1",
"@strapi/strapi": "^5.4.1",
"fs-extra": "^10.0.0",
"mime-types": "^2.1.27",
"pg": "^8.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^5.3.4",
"strapi-plugin-config-sync": "^1.1.3",
"styled-components": "^5.3.11"
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.0.0",
"strapi-plugin-config-sync": "^3.0.4",
"styled-components": "^6.0.0"
},
"devDependencies": {
"@types/koa": "^2.13.5"
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"typescript": "^5"
},
"engines": {
"node": ">=14.19.1",
Expand Down
41 changes: 21 additions & 20 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,80 +1,81 @@
import type { Attribute, Schema } from '@strapi/strapi';
import type { Schema, Struct } from '@strapi/strapi';

export interface PageBanner extends Schema.Component {
export interface PageBanner extends Struct.ComponentSchema {
collectionName: 'components_page_banners';
info: {
description: '';
displayName: 'Banner';
};
attributes: {
bannerImages: Attribute.Media<'images', true>;
bannerImages: Schema.Attribute.Media<'images', true>;
};
}

export interface PageFooter extends Schema.Component {
export interface PageFooter extends Struct.ComponentSchema {
collectionName: 'components_page_footers';
info: {
description: '';
displayName: 'Footer';
};
attributes: {
nationlogos: Attribute.Component<'page.nationlogo', true>;
nationlogos: Schema.Attribute.Component<'page.nationlogo', true>;
};
}

export interface PageNationlogo extends Schema.Component {
export interface PageNationlogo extends Struct.ComponentSchema {
collectionName: 'components_page_nationlogos';
info: {
description: '';
displayName: 'Nationlogo';
};
attributes: {
image: Attribute.Media<'images'> & Attribute.Required;
name: Attribute.String & Attribute.Required;
url: Attribute.String & Attribute.Required;
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
name: Schema.Attribute.String & Schema.Attribute.Required;
url: Schema.Attribute.String & Schema.Attribute.Required;
};
}

export interface PageNavbarLink extends Schema.Component {
export interface PageNavbarLink extends Struct.ComponentSchema {
collectionName: 'components_page_navbar_links';
info: {
displayName: 'Navbar Link';
icon: 'link';
};
attributes: {
link: Attribute.String & Attribute.Required;
title: Attribute.String & Attribute.Required;
link: Schema.Attribute.String & Schema.Attribute.Required;
title: Schema.Attribute.String & Schema.Attribute.Required;
};
}

export interface PageNavbarMultipleLink extends Schema.Component {
export interface PageNavbarMultipleLink extends Struct.ComponentSchema {
collectionName: 'components_page_navbar_multiple_links';
info: {
description: '';
displayName: 'Navbar Multiple Link';
icon: 'layer-group';
};
attributes: {
links: Attribute.Component<'page.navbar-link', true> & Attribute.Required;
title: Attribute.String & Attribute.Required;
links: Schema.Attribute.Component<'page.navbar-link', true> &
Schema.Attribute.Required;
title: Schema.Attribute.String & Schema.Attribute.Required;
};
}

export interface PageSidebar extends Schema.Component {
export interface PageSidebar extends Struct.ComponentSchema {
collectionName: 'components_page_sidebars';
info: {
description: '';
displayName: 'Sidebar';
icon: 'text-height';
};
attributes: {
content: Attribute.RichText & Attribute.Required;
content: Schema.Attribute.RichText & Schema.Attribute.Required;
};
}

declare module '@strapi/types' {
export module Shared {
export interface Components {
declare module '@strapi/strapi' {
export module Public {
export interface ComponentSchemas {
'page.banner': PageBanner;
'page.footer': PageFooter;
'page.nationlogo': PageNationlogo;
Expand Down
Loading

0 comments on commit 6dc18f4

Please sign in to comment.