startupjs 0.55.0 → 0.55.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "startupjs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.55.
|
|
4
|
+
"version": "0.55.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">= 14"
|
|
7
7
|
},
|
|
@@ -10,21 +10,20 @@
|
|
|
10
10
|
"bin": "./cli.js",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@startupjs/app": "^0.55.
|
|
14
|
-
"@startupjs/backend": "^0.55.
|
|
15
|
-
"@startupjs/bundler": "^0.55.
|
|
16
|
-
"@startupjs/cli": "^0.55.
|
|
17
|
-
"@startupjs/docker": "^0.54.0",
|
|
13
|
+
"@startupjs/app": "^0.55.2",
|
|
14
|
+
"@startupjs/backend": "^0.55.1",
|
|
15
|
+
"@startupjs/bundler": "^0.55.1",
|
|
16
|
+
"@startupjs/cli": "^0.55.1",
|
|
18
17
|
"@startupjs/hooks": "^0.55.0",
|
|
19
|
-
"@startupjs/i18n": "^0.55.
|
|
20
|
-
"@startupjs/init": "^0.55.
|
|
18
|
+
"@startupjs/i18n": "^0.55.2",
|
|
19
|
+
"@startupjs/init": "^0.55.2",
|
|
21
20
|
"@startupjs/isomorphic-helpers": "^0.55.0",
|
|
22
21
|
"@startupjs/orm": "^0.55.0",
|
|
23
22
|
"@startupjs/patches": "^0.55.0",
|
|
24
|
-
"@startupjs/react-sharedb": "^0.55.
|
|
25
|
-
"@startupjs/server": "^0.55.
|
|
26
|
-
"babel-preset-startupjs": "^0.55.
|
|
23
|
+
"@startupjs/react-sharedb": "^0.55.2",
|
|
24
|
+
"@startupjs/server": "^0.55.1",
|
|
25
|
+
"babel-preset-startupjs": "^0.55.1",
|
|
27
26
|
"react-native-web": "^0.18.0"
|
|
28
27
|
},
|
|
29
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "402da5248667019425e0b9c535c20d7c48f8f772"
|
|
30
29
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"standard",
|
|
10
10
|
"standard-react",
|
|
11
11
|
"plugin:react/recommended",
|
|
12
|
-
"plugin:react-pug/all"
|
|
13
|
-
"plugin:wdio/recommended"
|
|
12
|
+
"plugin:react-pug/all"
|
|
14
13
|
],
|
|
15
14
|
"globals": {
|
|
16
15
|
"Atomics": "readonly",
|
|
@@ -26,8 +25,7 @@
|
|
|
26
25
|
"plugins": [
|
|
27
26
|
"react",
|
|
28
27
|
"react-pug",
|
|
29
|
-
"eslint-plugin-import-helpers"
|
|
30
|
-
"wdio"
|
|
28
|
+
"eslint-plugin-import-helpers"
|
|
31
29
|
],
|
|
32
30
|
"rules": {
|
|
33
31
|
"prefer-const": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
2
|
import { pug, observer, useApi, useDoc } from 'startupjs'
|
|
3
|
-
import { Br, Button, Card, Div,
|
|
3
|
+
import { Br, Button, Card, Div, Span } from '@startupjs/ui'
|
|
4
4
|
import axios from 'axios'
|
|
5
5
|
import { faPlus, faMinus } from '@fortawesome/free-solid-svg-icons'
|
|
6
6
|
import './index.styl'
|
|
@@ -30,7 +30,7 @@ export default observer(function TestComponent ({ style }) {
|
|
|
30
30
|
| TestThing counter:#{' '}
|
|
31
31
|
Span.counter(bold) #{testThing.counter}
|
|
32
32
|
Br
|
|
33
|
-
|
|
33
|
+
Div(row)
|
|
34
34
|
Button(
|
|
35
35
|
variant='flat'
|
|
36
36
|
color='success'
|
|
@@ -61,7 +61,7 @@ export default observer(function TestComponent ({ style }) {
|
|
|
61
61
|
|
|
62
62
|
async function getApi () {
|
|
63
63
|
try {
|
|
64
|
-
|
|
64
|
+
const res = await axios.get('/api/test-thing')
|
|
65
65
|
if (res.status !== 200 || !res.data) {
|
|
66
66
|
throw new Error('No data. Status: ' + res.status)
|
|
67
67
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { pug, observer, emit, useValue, useLocal } from 'startupjs'
|
|
3
|
-
import { Button, Div, H1, Layout, Menu,
|
|
3
|
+
import { Button, Div, H1, Layout, Menu, SmartSidebar } from '@startupjs/ui'
|
|
4
4
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
|
5
5
|
import APP from '../../app.json'
|
|
6
6
|
import './index.styl'
|
|
@@ -36,7 +36,7 @@ export default observer(function ({ children }) {
|
|
|
36
36
|
$open=$opened
|
|
37
37
|
renderContent=renderSidebar
|
|
38
38
|
)
|
|
39
|
-
|
|
39
|
+
Div.menu(row)
|
|
40
40
|
Button(color='secondaryText' icon=faBars onPress=() => $opened.set(!opened))
|
|
41
41
|
H1.logo= APP_NAME
|
|
42
42
|
|
|
@@ -3,7 +3,7 @@ $menuHeight = 6u
|
|
|
3
3
|
.sidebar
|
|
4
4
|
&:part(sidebar)
|
|
5
5
|
border-right-width 1px
|
|
6
|
-
border-right-color var(--color-border-strong-alt)
|
|
6
|
+
border-right-color var(--color-border-main-strong-alt)
|
|
7
7
|
background-color #eee
|
|
8
8
|
&-menu
|
|
9
9
|
padding-top 2u
|
|
@@ -15,7 +15,7 @@ $menuHeight = 6u
|
|
|
15
15
|
align-items center
|
|
16
16
|
padding 0 2u
|
|
17
17
|
border-bottom-width 1px
|
|
18
|
-
border-bottom-color var(--color-border-strong-alt)
|
|
18
|
+
border-bottom-color var(--color-border-main-strong-alt)
|
|
19
19
|
|
|
20
20
|
.logo
|
|
21
21
|
margin-left 2u
|