softleader-nuxt-core 1.0.8 → 1.0.9

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/bin/init.mjs CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import fs from 'node:fs'
4
4
  import path from 'node:path'
@@ -100,10 +100,30 @@ fs.writeFileSync(path.join(targetDir, 'app.vue'), appVue)
100
100
  const pagesDir = path.join(targetDir, 'pages')
101
101
  fs.mkdirSync(pagesDir)
102
102
  const indexVue = `<template>
103
- <div>
104
- <h1>歡迎使用 Softleader Nuxt Core!</h1>
105
- <p>您的專案已經成功建立。</p>
106
- </div>
103
+ <IStack vertical justify="center" align="center" class="min-h-screen bg-gray-50 p-6">
104
+ <ICard class="w-full max-w-2xl px-8 py-10 text-center shadow-lg rounded-2xl">
105
+ <IIcon name="heroicons:rocket-launch" class="text-6xl text-primary-500 mb-6 mx-auto" />
106
+ <h1 class="text-3xl font-bold text-gray-800 mb-4">歡迎使用 Softleader Nuxt Core!</h1>
107
+ <p class="text-gray-600 mb-8 leading-relaxed">
108
+ 您的專案已經成功建立。現在你可以直接使用 Layer 內建的設計系統元件,加速你的開發流程。
109
+ </p>
110
+
111
+ <IAlert type="success" show-icon class="mb-8 text-left">
112
+ <strong>準備就緒!</strong> 嘗試編輯 <code>pages/index.vue</code> 來查看熱更新效果。
113
+ </IAlert>
114
+
115
+ <IStack gap="4" justify="center">
116
+ <IButton type="primary" size="large" href="https://nuxt.com/docs" target="_blank">
117
+ <IIcon name="heroicons:book-open" class="mr-2" />
118
+ Nuxt 官方文件
119
+ </IButton>
120
+ <IButton variant="outlined" size="large" href="https://github.com" target="_blank">
121
+ <IIcon name="bx:bxl-github" class="mr-2" />
122
+ 元件庫指南
123
+ </IButton>
124
+ </IStack>
125
+ </ICard>
126
+ </IStack>
107
127
  </template>
108
128
  `
109
129
  fs.writeFileSync(path.join(pagesDir, 'index.vue'), indexVue)
@@ -37,7 +37,7 @@ withDefaults(defineProps<Props>(), {
37
37
  v-if="title"
38
38
  class="alert-title"
39
39
  >
40
- {{ title }}
40
+ title:{{ title }}
41
41
  </div>
42
42
  <div class="alert-text">
43
43
  <slot>{{ text }}</slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softleader-nuxt-core",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Nuxt 3 Core Layer - 可重用的基礎架構",
5
5
  "type": "module",
6
6
  "files": [