Skip to content

Commit

Permalink
Merge pull request js-template#50 from js-template/dev
Browse files Browse the repository at this point in the history
Release v0.0.2: SEO Improvements, Component Cleanup, Schema Updates, and Theme Initialization
  • Loading branch information
zelal-dev authored Oct 28, 2024
2 parents f0416ff + 00dec9c commit 5897b45
Show file tree
Hide file tree
Showing 169 changed files with 7,445 additions and 3,231 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ yarn.lock*
.npmrc
apps/backend/src/plugins/metajob-backend/
.npmrc
tsconfig.tsbuildinfo
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package-manager=pnpm@7
package-manager=pnpm@9
@padma:registry=https://api.keygen.sh/v1/accounts/88de7a21-b541-48e5-8727-f992ebeb43fa/artifacts/
//api.keygen.sh/v1/accounts/88de7a21-b541-48e5-8727-f992ebeb43fa/artifacts/:_authToken=$LICENSE_TOKEN
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@

# Padma- The Next.js Framework for Strapi

> # 📢 Project Release Notice
>
> This project is currently released as a **Job Board Solution** under an [EULA License](./EULA.md).
>
> For now, it is available only for **job board use cases**, but it can be adapted for **multi-purpose solutions** soon.
>
> ---
>
> 🔓 **Open-Source Announcement**:
> This project will be **open-sourced soon**! Stay tuned for updates on its release.

## **What is Padma?**
#### Introduction:
Padma is the easiest way to create lightning-fast websites using Strapi and Next.js. It's open source and free to use.


## How Padma Works:

Expand Down
4 changes: 1 addition & 3 deletions apps/backend/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ module.exports = ({ env }) => ({
maxFileSize: 250 * 1024 * 1024, // multipart data, modify here limit of uploaded file size
},
},
"metajob-strapi": {
enabled: true,
},

"google-maps": {
enabled: true,
},
Expand Down
1 change: 0 additions & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@strapi/plugin-users-permissions": "4.19.0",
"@strapi/provider-upload-cloudinary": "4.15.4",
"@strapi/strapi": "4.15.5",
"@padma/metajob-backend": "0.0.1",
"pg": "8.11.3",
"prop-types": "^15.7.2",
"react": "^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
Expand Down Expand Up @@ -47,7 +47,8 @@
"type": "dynamiczone",
"components": [
"shared.spacing",
"component.page-title"
"component.page-title",
"single-type.blog-details"
]
},
"leftSidebar": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
Expand Down
144 changes: 21 additions & 123 deletions apps/backend/src/api/layout/content-types/layout/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,153 +8,51 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"light_logo": {
"type": "component",
"repeatable": false,
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "header.logo"
"type": "dynamiczone",
"components": [
"block.public-header",
"block.private-header"
],
"required": false
},
"Button": {
"type": "component",
"repeatable": true,
"footer": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "component.link"
"type": "dynamiczone",
"components": [
"block.footer",
"widget.footer-top"
],
"required": false
},
"FooterOne": {
"type": "component",
"repeatable": false,
"private_sidebar_menus": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-one"
},
"FooterTwo": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-two"
},
"FooterThree": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-two"
},
"userMenu": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "component.link"
},
"FooterFour": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-two"
},
"FooterTop": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-search"
},
"FooterBottom": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "widget.footer-bottom"
},
"dark_logo": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "header.logo"
},
"langMenu": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": false
}
},
"component": "component.link"
},
"employerSidebar": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "component.menu"
},
"candidateSidebar": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "component.menu"
},
"MainMenu": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "component.menu"
"type": "dynamiczone",
"components": [
"shared.share-menu"
],
"required": false
}
}
}
9 changes: 0 additions & 9 deletions apps/backend/src/api/list-detail/controllers/list-detail.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/backend/src/api/page/content-types/page/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"forms.job-filter",
"forms.company-filter",
"forms.candidate-filter",
"block.category-card2"
"block.category-list"
]
}
}
Expand Down
29 changes: 29 additions & 0 deletions apps/backend/src/api/permalink/content-types/permalink/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"kind": "singleType",
"collectionName": "permalinks",
"info": {
"singularName": "permalink",
"pluralName": "permalinks",
"displayName": "Permalinks",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"structure": {
"type": "enumeration",
"enum": [
"Plain",
"Name and display"
]
},
"singlePage": {
"displayName": "singlePage",
"type": "component",
"repeatable": true,
"component": "config.single-page"
}
}
}
9 changes: 9 additions & 0 deletions apps/backend/src/api/permalink/controllers/permalink.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* permalink controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::permalink.permalink');
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

/**
* list-detail router
* permalink router
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::list-detail.list-detail');
module.exports = createCoreRouter('api::permalink.permalink');
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

/**
* list-detail service
* permalink service
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::list-detail.list-detail');
module.exports = createCoreService('api::permalink.permalink');
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"block.latest-applied",
"block.manage-lists",
"block.manage-companies",
"table.applied-jobs"
"table.applied-jobs",
"block.manage-resume"
],
"pluginOptions": {
"i18n": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
Expand Down
9 changes: 8 additions & 1 deletion apps/backend/src/components/banner/banner-one.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
]
},
"style": {
"type": "json"
"type": "component",
"repeatable": false,
"component": "component.style-section"
},
"empty": {
"type": "component",
"repeatable": false,
"component": "shared.empty"
}
}
}
10 changes: 10 additions & 0 deletions apps/backend/src/components/block/blog-card.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@
"type": "relation",
"relation": "oneToMany",
"target": "api::post.post"
},
"empty": {
"type": "component",
"repeatable": false,
"component": "shared.empty"
},
"style": {
"type": "component",
"repeatable": false,
"component": "component.style-section"
}
}
}
Loading

0 comments on commit 5897b45

Please sign in to comment.