]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
style: fix format in vapor
authorRizumu Ayaka <rizumu@ayaka.moe>
Fri, 29 Dec 2023 14:11:33 +0000 (22:11 +0800)
committerRizumu Ayaka <rizumu@ayaka.moe>
Fri, 29 Dec 2023 14:11:33 +0000 (22:11 +0800)
packages/vue-vapor/index.mjs
packages/vue-vapor/src/dev.ts
packages/vue-vapor/src/runtime.ts
playground/setup/dev.js
playground/setup/vite.js
playground/src/App.vue
playground/src/directive.vue
playground/src/scheduler.vue
playground/vite.config.ts

index 8b43612483a678b05513bdc4085e3822c4e21b24..fcb9204cbc7a92e094380e8c2e2372d3810db490 100644 (file)
@@ -1 +1 @@
-export * from './index.js'
\ No newline at end of file
+export * from './index.js'
index 79f233ed925b58f6008fb0048fa36e89027c0a86..602079a20e2165b54ad948633d694d22ca0f7daa 100644 (file)
@@ -6,7 +6,7 @@ export function initDev() {
     if (!__ESM_BUNDLER__) {
       console.info(
         `You are running a development build of Vue.\n` +
-          `Make sure to use the production build (*.prod.js) when deploying for production.`
+          `Make sure to use the production build (*.prod.js) when deploying for production.`,
       )
     }
 
index 753b4b59743697a7923c1794c169cd5588286e44..86c8db49e673fea4388be1b8a570c4394af0fb21 100644 (file)
@@ -20,7 +20,7 @@ export const compile = () => {
             ? ` Use "vue-vapor.esm-browser.js" instead.`
             : __GLOBAL__
               ? ` Use "vue-vapor.global.js" instead.`
-              : ``) /* should not happen */
+              : ``) /* should not happen */,
     )
   }
 }
index 79f4f42caf6f1527fe4a888092e3c1b696fcfb5c..c3a4b66c32ec0d5c7d34559b20b634e8375006cf 100644 (file)
@@ -34,8 +34,8 @@ export function DevPlugin({ browser = false } = {}) {
             '@vue/compiler-ssr': resolve('compiler-ssr/src'),
 
             '@vue/reactivity': resolve('reactivity/src'),
-            '@vue/shared': resolve('shared/src')
-          }
+            '@vue/shared': resolve('shared/src'),
+          },
         },
         define: {
           __COMMIT__: `"__COMMIT__"`,
@@ -59,9 +59,9 @@ export function DevPlugin({ browser = false } = {}) {
           // feature flags
           __FEATURE_SUSPENSE__: `true`,
           __FEATURE_OPTIONS_API__: `true`,
-          __FEATURE_PROD_DEVTOOLS__: `false`
-        }
+          __FEATURE_PROD_DEVTOOLS__: `false`,
+        },
       }
-    }
+    },
   }
 }
index a9525aeaf4dda95290c95379f5759ff2ea12743e..e6b9a92720604a9c330b7128e292254e05a34993 100644 (file)
@@ -8,7 +8,7 @@ startVite(
   { plugins: [DevPlugin()] },
   {
     deps: {
-      inline: ['@vitejs/plugin-vue']
-    }
-  }
+      inline: ['@vitejs/plugin-vue'],
+    },
+  },
 )
index 7e0abdccc70be6ddcaf3df0f0d79e5470b803ccf..f7c7a681de81f628872ae7eceb2e4b43fe7c3bee 100644 (file)
@@ -4,7 +4,7 @@ import {
   computed,
   onMounted,
   onBeforeMount,
-  getCurrentInstance
+  getCurrentInstance,
 } from 'vue/vapor'
 
 const instance = getCurrentInstance()!
index 81d4a3e5322471d2f21c8b3f58c425acad09ec30..722801d59d1739a365fe3505b85e81d14ddd8b06 100644 (file)
@@ -16,7 +16,7 @@ const vDirective: ObjectDirective<HTMLDivElement, undefined> = {
   },
   mounted(node) {
     if (node.parentElement) node.textContent += 'mounted, '
-  }
+  },
 }
 const vDirectiveSimple: FunctionDirective<HTMLDivElement> = (node, binding) => {
   console.log(node, binding)
index a3019342a00077ea2938b976091e669afc50f3f9..6aca729d15a98c172ce7835966f4fda15e26ed1f 100644 (file)
@@ -1,5 +1,12 @@
 <script setup lang="ts">
-import { onEffectCleanup, ref, watch, watchEffect, watchPostEffect, watchSyncEffect } from 'vue/vapor'
+import {
+  onEffectCleanup,
+  ref,
+  watch,
+  watchEffect,
+  watchPostEffect,
+  watchSyncEffect,
+} from 'vue/vapor'
 
 const source = ref(0)
 const add = () => source.value++
@@ -39,9 +46,7 @@ const onUpdate = (arg: any) => {
   <div>
     <p>Please check the console</p>
     <div>
-      <button @click="add">
-        Add
-      </button>
+      <button @click="add">Add</button>
       |
       <span>{{ onUpdate(source) }}</span>
     </div>
index 6f5a88d2a3f8f0a659de8a808db3e40f31805272..7e6ebb5430d9e7713aed84ed1d1d4f134afa19c9 100644 (file)
@@ -7,17 +7,17 @@ import * as CompilerSFC from '@vue/compiler-sfc'
 
 export default defineConfig({
   build: {
-    target: 'esnext'
+    target: 'esnext',
   },
   clearScreen: false,
   plugins: [
     Vue({
       template: {
-        compiler: CompilerVapor as any
+        compiler: CompilerVapor as any,
       },
-      compiler: CompilerSFC
+      compiler: CompilerSFC,
     }),
     DevPlugin(),
-    Inspect()
-  ]
+    Inspect(),
+  ],
 })