startupjs 0.55.0 → 0.55.1
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.1",
|
|
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.1",
|
|
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.
|
|
18
|
+
"@startupjs/i18n": "^0.55.1",
|
|
20
19
|
"@startupjs/init": "^0.55.0",
|
|
21
20
|
"@startupjs/isomorphic-helpers": "^0.55.0",
|
|
22
21
|
"@startupjs/orm": "^0.55.0",
|
|
23
22
|
"@startupjs/patches": "^0.55.0",
|
|
24
23
|
"@startupjs/react-sharedb": "^0.55.0",
|
|
25
|
-
"@startupjs/server": "^0.55.
|
|
26
|
-
"babel-preset-startupjs": "^0.55.
|
|
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": "88d13d7c882487c160d0d416b1b04bba28e6298d"
|
|
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
|
|