create-mettle-app 1.9.3 → 1.9.5
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 +1 -1
- package/template-mettle/src/style/app.css +0 -4
- package/template-mettle-apps/src/router/index.js +3 -3
- package/template-mettle-apps/src/views/home.jsx +2 -6
- package/template-mettle-apps-ts/src/views/home.tsx +2 -6
- package/template-mettle-ts/src/style/app.css +0 -4
- package/template-mettle-apps/src/styles/app.css +0 -7
- package/template-mettle-apps-ts/src/styles/app.css +0 -7
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resetView } from 'mettle';
|
|
2
2
|
import { initRouter } from 'mettle-router';
|
|
3
3
|
|
|
4
|
-
import Home from '../
|
|
5
|
-
import About from '../
|
|
4
|
+
import Home from '../views/home';
|
|
5
|
+
import About from '../views/about';
|
|
6
6
|
|
|
7
7
|
const router = initRouter(
|
|
8
8
|
[
|
|
@@ -15,7 +15,7 @@ const router = initRouter(
|
|
|
15
15
|
template: About,
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
|
-
resetView
|
|
18
|
+
resetView,
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
export default router;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { signal
|
|
1
|
+
import { signal } from 'mettle';
|
|
2
2
|
import { linkTo } from 'mettle-router';
|
|
3
3
|
|
|
4
4
|
export default function Home() {
|
|
5
5
|
const msg = signal('hello');
|
|
6
|
-
const count = signal(3);
|
|
7
6
|
|
|
8
7
|
function goAbout() {
|
|
9
8
|
linkTo({
|
|
@@ -16,10 +15,7 @@ export default function Home() {
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
function useChange() {
|
|
19
|
-
|
|
20
|
-
msg.value = 'world';
|
|
21
|
-
count.value++;
|
|
22
|
-
});
|
|
18
|
+
msg.value = 'world';
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
return (
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { signal
|
|
1
|
+
import { signal } from 'mettle';
|
|
2
2
|
import { linkTo } from 'mettle-router';
|
|
3
3
|
|
|
4
4
|
export default function Home() {
|
|
5
5
|
const msg = signal('hello');
|
|
6
|
-
const count = signal(3);
|
|
7
6
|
|
|
8
7
|
function goAbout() {
|
|
9
8
|
linkTo({
|
|
@@ -16,10 +15,7 @@ export default function Home() {
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
function useChange() {
|
|
19
|
-
|
|
20
|
-
msg.value = 'world';
|
|
21
|
-
count.value++;
|
|
22
|
-
});
|
|
18
|
+
msg.value = 'world';
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
return (
|