diff --git a/front/fo/client/components/sample/sub-component.vue b/front/fo/client/components/sample/sub-component.vue
new file mode 100644
index 0000000..cc1f17f
--- /dev/null
+++ b/front/fo/client/components/sample/sub-component.vue
@@ -0,0 +1,40 @@
+
+
+
{{ innerText }}
+
+
+
{{ textSub }}
+
+
+
+
+
diff --git a/front/fo/client/middleware/custom.ts b/front/fo/client/middleware/custom.ts
new file mode 100644
index 0000000..a55cadf
--- /dev/null
+++ b/front/fo/client/middleware/custom.ts
@@ -0,0 +1,5 @@
+import { Context } from '@nuxt/types'
+
+export default async (context: Context) => {
+ console.log('executed')
+}
diff --git a/front/fo/client/pages/sample2/index.vue b/front/fo/client/pages/sample2/index.vue
new file mode 100644
index 0000000..1606da3
--- /dev/null
+++ b/front/fo/client/pages/sample2/index.vue
@@ -0,0 +1,100 @@
+
+
+
안녕하세요.
+
{{ value1 }}
+
{{ comValue2 }}
+
+
+
+
+
+
+
+
+
+
diff --git a/front/fo/nuxt.config.ts b/front/fo/nuxt.config.ts
index 0b6ecfe..46ebabe 100644
--- a/front/fo/nuxt.config.ts
+++ b/front/fo/nuxt.config.ts
@@ -26,7 +26,7 @@ export default async () => {
datePattern: 'YYYY-MM-DD-HH',
},
server: {
- type: configProperties.ServerType.NONE,
+ type: configProperties.ServerType.CONNECT,
middleware: {
compress: true,
bodyParser: true,
@@ -44,7 +44,7 @@ export default async () => {
},
css: ['~/assets/global.scss'],
head: {
- titleTemplate: 'U.STRA Node Framework Sample - FO',
+ titleTemplate: 'U.STRA Node Framework Sample - FO %s',
title: '',
},
generation: {
@@ -74,5 +74,6 @@ export default async () => {
_config.env.SERVER_PROP_ENC_KEY = 'Z3NjLWNyeXB0by1rZXkxMQ=='
_config.build.transpile.push('@ustra-sample/cmm')
+ _config.router.middleware.push('custom')
})
}
diff --git a/front/fo/package.json b/front/fo/package.json
index ea6c9ea..44ea4ae 100644
--- a/front/fo/package.json
+++ b/front/fo/package.json
@@ -12,8 +12,10 @@
"IE >= 11"
],
"scripts": {
- "dev": "cross-env NODE_ENV=development CONFIG_ENV=local nuxt-ts dev --spa",
- "generate": "rm -rf ./node_modules && cross-env NODE_ENV=production CONFIG_ENV=dev nuxt-ts generate --spa",
+ "dev": "cross-env NODE_ENV=development CONFIG_ENV=local nuxt dev",
+ "build": "cross-env NODE_ENV=development CONFIG_ENV=local nuxt build",
+ "start": "cross-env NODE_ENV=development CONFIG_ENV=local nuxt start",
+ "generate": "rm -rf ./node_modules && cross-env NODE_ENV=production CONFIG_ENV=dev nuxt generate",
"test": "jest --detectOpenHandles --forceExit"
},
"dependencies": {