Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 4ffd38c

Browse files
committed
Merge branch 'main' into next
2 parents ec75fcd + fb5fb68 commit 4ffd38c

File tree

22 files changed

+108
-20
lines changed

22 files changed

+108
-20
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "3.4.2"
3+
"version": "3.4.4"
44
}

packages/app/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ quote_type = single
1717

1818
[*.md]
1919
trim_trailing_whitespace = false
20+
21+
[*.mdx]
22+
trim_trailing_whitespace = false

packages/app/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
'cypress/globals': true,
1616
},
1717
globals: {
18-
STATIC_CMS_CORE_VERSION: false,
18+
STATIC_CMS_APP_VERSION: false,
1919
CMS_ENV: false,
2020
},
2121
rules: {

packages/app/babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22

3-
const coreVersion = require('./package.json').version;
3+
const appVersion = require('./package.json').version;
44
const isProduction = process.env.NODE_ENV === 'production';
55
const isTest = process.env.NODE_ENV === 'test';
66
const isESM = process.env.NODE_ENV === 'esm';
@@ -53,7 +53,7 @@ function plugins() {
5353
[
5454
'transform-define',
5555
{
56-
STATIC_CMS_CORE_VERSION: `${coreVersion}`,
56+
STATIC_CMS_APP_VERSION: `${appVersion}`,
5757
},
5858
],
5959
[

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staticcms/app",
3-
"version": "3.4.2",
3+
"version": "3.4.4",
44
"license": "MIT",
55
"description": "Static CMS application.",
66
"repository": "https://github.com/StaticJsCMS/static-cms",
@@ -39,7 +39,7 @@
3939
"dependencies": {
4040
"@babel/eslint-parser": "7.22.15",
4141
"@babel/runtime": "7.23.1",
42-
"@staticcms/core": "^3.4.2",
42+
"@staticcms/core": "^3.4.4",
4343
"buffer": "6.0.3",
4444
"react": "18.2.0",
4545
"react-dom": "18.2.0",

packages/app/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const webpack = require('webpack');
33
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
44
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
55
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
6+
const pkg = require('./package.json');
67

78
const isProduction = process.env.NODE_ENV === 'production';
89
const devServerPort = parseInt(process.env.STATIC_CMS_DEV_SERVER_PORT || `${8080}`);
@@ -89,6 +90,9 @@ module.exports = {
8990
process: 'process/browser',
9091
Buffer: ['buffer', 'Buffer'],
9192
}),
93+
new webpack.DefinePlugin({
94+
STATIC_CMS_APP_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
95+
}),
9296
].filter(Boolean),
9397
output: {
9498
path: path.resolve(__dirname, 'dist'),

packages/core/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ quote_type = single
1717

1818
[*.md]
1919
trim_trailing_whitespace = false
20+
21+
[*.mdx]
22+
trim_trailing_whitespace = false
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
main_menu:
3+
- label: News
4+
href: /news
5+
- label: Features
6+
href: '#features'
7+
- label: About
8+
href: '#about'
9+
- label: Contact
10+
href: '#contact'
11+
footer_menus:
12+
- label: Company
13+
links:
14+
- label: Home
15+
href: /
16+
- label: 'Privacy Policy '
17+
href: '#'
18+
- label: About us
19+
href: '#'
20+
- label: Documentation
21+
links:
22+
- label: Docs
23+
href: '#'
24+
- label: Blog
25+
href: '#'
26+
---

packages/core/dev-test/backends/proxy/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,45 @@ collections:
172172
- label: Description
173173
name: description
174174
widget: text
175+
176+
- name: navigation
177+
label: Navigation
178+
file: packages/core/dev-test/backends/proxy/_data/navigation.mdx
179+
extension: mdx
180+
format: yaml-frontmatter
181+
fields:
182+
- name: main_menu
183+
label: Main Menu
184+
widget: list
185+
collapsed: true
186+
fields:
187+
- name: label
188+
label: Label
189+
widget: string
190+
- name: href
191+
label: Href
192+
widget: string
193+
- name: footer_menus
194+
label: Footer Menus
195+
widget: list
196+
collapsed: true
197+
reuired: false
198+
fields:
199+
- name: label
200+
label: Label
201+
widget: string
202+
- name: links
203+
label: Links
204+
widget: list
205+
collapsed: true
206+
fields:
207+
- name: label
208+
label: Label
209+
widget: string
210+
- name: href
211+
label: Href
212+
widget: string
213+
175214
- name: kitchenSink
176215
label: Kitchen Sink
177216
folder: packages/core/dev-test/backends/proxy/_sink

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@staticcms/core",
3-
"version": "3.4.2",
3+
"version": "3.4.4",
44
"license": "MIT",
55
"description": "Static CMS core application.",
66
"repository": "https://github.com/StaticJsCMS/static-cms",

0 commit comments

Comments
 (0)