Skip to content

Commit

Permalink
Merge branch 'main' into features/morphs-populate
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly committed Nov 23, 2022
2 parents 5da0015 + c5839f5 commit f67c4b4
Show file tree
Hide file tree
Showing 79 changed files with 2,551 additions and 1,092 deletions.
2 changes: 1 addition & 1 deletion .github/actions/check-pr-status/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "check-pr-status",
"version": "4.5.1",
"version": "4.5.2",
"main": "dist/index.js",
"license": "MIT",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/addToProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- opened
- transferred

permissions: {}
jobs:
add-to-project:
name: Add issue to Support Team project
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/contributor-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ defaults:
run:
working-directory: docs

permissions: {}
jobs:
deploy:
permissions:
contents: write # to push pages branch (peaceiris/actions-gh-pages)

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- cron: '0 0 * * 2-6'
workflow_dispatch:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
publish:
name: 'Publish'
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/skipped_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: 'Tests'

on:
pull_request:
paths:
- 'docs/**'
- '**.mdx?'

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
lint:
name: 'lint (node: ${{ matrix.node }})'
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

unit_back:
name: 'unit_back (node: ${{ matrix.node }})'
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

unit_front:
name: 'unit_front (node: ${{ matrix.node }})'
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

api_ce_pg:
runs-on: ubuntu-latest
needs: [lint, unit_back, unit_front]
name: '[CE] API Integration (postgres, node: ${{ matrix.node }})'
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

api_ce_mysql:
runs-on: ubuntu-latest
needs: [lint, unit_back, unit_front]
name: '[CE] API Integration (mysql, node: ${{ matrix.node }})'
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

api_ce_mysql_5:
runs-on: ubuntu-latest
needs: [lint, unit_back, unit_front]
name: '[CE] API Integration (mysql:5 , node: ${{ matrix.node }})'
strategy:
matrix:
node: [14, 16, 18]
steps:
- run: echo "Skipped"

api_ce_sqlite:
runs-on: ubuntu-latest
needs: [lint, unit_back, unit_front]
name: '[CE] API Integration (sqlite: ${{ matrix.sqlite_pkg }}, node: ${{ matrix.node }})'
steps:
- run: echo "Skipped"
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
lint:
name: 'lint (node: ${{ matrix.node }})'
Expand Down
22 changes: 11 additions & 11 deletions examples/getstarted/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "getstarted",
"private": true,
"version": "4.5.1",
"version": "4.5.2",
"description": "A Strapi application.",
"scripts": {
"develop": "strapi develop",
Expand All @@ -12,16 +12,16 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-color-picker": "4.5.1",
"@strapi/plugin-documentation": "4.5.1",
"@strapi/plugin-graphql": "4.5.1",
"@strapi/plugin-i18n": "4.5.1",
"@strapi/plugin-sentry": "4.5.1",
"@strapi/plugin-users-permissions": "4.5.1",
"@strapi/provider-email-mailgun": "4.5.1",
"@strapi/provider-upload-aws-s3": "4.5.1",
"@strapi/provider-upload-cloudinary": "4.5.1",
"@strapi/strapi": "4.5.1",
"@strapi/plugin-color-picker": "4.5.2",
"@strapi/plugin-documentation": "4.5.2",
"@strapi/plugin-graphql": "4.5.2",
"@strapi/plugin-i18n": "4.5.2",
"@strapi/plugin-sentry": "4.5.2",
"@strapi/plugin-users-permissions": "4.5.2",
"@strapi/provider-email-mailgun": "4.5.2",
"@strapi/provider-upload-aws-s3": "4.5.2",
"@strapi/provider-upload-cloudinary": "4.5.2",
"@strapi/strapi": "4.5.2",
"@vscode/sqlite3": "5.0.8",
"better-sqlite3": "7.4.6",
"lodash": "4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
"custom_field": {
"type": "customField",
"customField": "plugin::color-picker.color"
},
"custom_field_with_default_options": {
"type": "customField",
"regex": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$",
"customField": "plugin::color-picker.color"
}
}
}
42 changes: 42 additions & 0 deletions examples/getstarted/src/plugins/myplugin/admin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,48 @@ export default {
id: pluginId,
name,
});

const allTypes = [
'biginteger',
'boolean',
'date',
'datetime',
'decimal',
'email',
'enumeration',
'float',
'integer',
'json',
'password',
'richtext',
'string',
'text',
'time',
'uid',
];

allTypes.forEach((type) => {
const upcasedType = type.charAt(0).toUpperCase() + type.slice(1);
const customField = {
type,
pluginId: 'myplugin',
name: `custom${upcasedType}`,
intlLabel: {
id: 'customfieldtest',
defaultMessage: `custom${upcasedType}`,
},
intlDescription: {
id: 'customfieldtest',
defaultMessage: `custom${upcasedType}`,
},
components: {
Input: async () =>
import(/* webpackChunkName: "test-custom-field" */ './components/PluginIcon'),
},
};

app.customFields.register(customField);
});
},
bootstrap() {},
async registerTrads({ locales }) {
Expand Down
28 changes: 28 additions & 0 deletions examples/getstarted/src/plugins/myplugin/server/register.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
'use strict';

module.exports = ({ strapi }) => {
const allTypes = [
'biginteger',
'boolean',
'date',
'datetime',
'decimal',
'email',
'enumeration',
'float',
'integer',
'json',
'password',
'richtext',
'string',
'text',
'time',
'uid',
];

allTypes.forEach((type) => {
const upcasedType = type.charAt(0).toUpperCase() + type.slice(1);
strapi.customFields.register({
type,
name: `custom${upcasedType}`,
plugin: 'myplugin',
});
});

if (strapi.plugin('graphql')) {
require('./graphql')({ strapi });
}
Expand Down
8 changes: 4 additions & 4 deletions examples/kitchensink-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kitchensink-ts",
"private": true,
"version": "4.5.1",
"version": "4.5.2",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
Expand All @@ -10,9 +10,9 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-i18n": "4.5.1",
"@strapi/plugin-users-permissions": "4.5.1",
"@strapi/strapi": "4.5.1",
"@strapi/plugin-i18n": "4.5.2",
"@strapi/plugin-users-permissions": "4.5.2",
"@strapi/strapi": "4.5.2",
"better-sqlite3": "7.4.6"
},
"author": {
Expand Down
10 changes: 5 additions & 5 deletions examples/kitchensink/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kitchensink",
"private": true,
"version": "4.5.1",
"version": "4.5.2",
"description": "A Strapi application.",
"scripts": {
"develop": "strapi develop",
Expand All @@ -12,10 +12,10 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/provider-email-mailgun": "4.5.1",
"@strapi/provider-upload-aws-s3": "4.5.1",
"@strapi/provider-upload-cloudinary": "4.5.1",
"@strapi/strapi": "4.5.1",
"@strapi/provider-email-mailgun": "4.5.2",
"@strapi/provider-upload-aws-s3": "4.5.2",
"@strapi/provider-upload-cloudinary": "4.5.2",
"@strapi/strapi": "4.5.2",
"lodash": "4.17.21",
"mysql": "2.18.1",
"passport-google-oauth2": "0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.5.1",
"version": "4.5.2",
"packages": [
"packages/*",
"examples/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/admin-test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@strapi/admin-test-utils",
"version": "4.5.1",
"version": "4.5.2",
"private": true,
"description": "Test utilities for the Strapi administration panel",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/create-strapi-app/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "create-strapi-app",
"version": "4.5.1",
"version": "4.5.2",
"description": "Generate a new Strapi application.",
"dependencies": {
"@strapi/generate-new": "4.5.1",
"commander": "6.1.0",
"@strapi/generate-new": "4.5.2",
"commander": "7.2.0",
"inquirer": "8.2.4"
},
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/create-strapi-starter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-strapi-starter",
"version": "4.5.1",
"version": "4.5.2",
"description": "Generate a new Strapi application.",
"keywords": [
"create-strapi-starter",
Expand Down Expand Up @@ -38,10 +38,10 @@
"test": "echo \"no tests yet\""
},
"dependencies": {
"@strapi/generate-new": "4.5.1",
"@strapi/generate-new": "4.5.2",
"chalk": "4.1.1",
"ci-info": "3.5.0",
"commander": "7.1.0",
"commander": "7.2.0",
"execa": "5.1.1",
"fs-extra": "10.0.0",
"inquirer": "8.2.4",
Expand Down

0 comments on commit f67c4b4

Please sign in to comment.