area-yg 0.2.0

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/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # Spacegt (Default)
2
+
3
+ This is the Spacegt tool, designed to provide you with a good start for building new applications. Universal components are built in.
4
+
5
+ ## ❗️ Important Links
6
+
7
+ - 📄 [Docs](https://docs.spacegt.com/)
8
+ - 🚨 Issues: ---
9
+ - 🏬 [Store](https://store.spacegt.com/)
10
+ - 🎮 [Playground](https://play.spacegt.com/)
11
+ - 💬 [Discord](https://community.spacegt.com)
12
+
13
+ ## 💿 Install
14
+
15
+ Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
16
+
17
+ | Package Manager | Command |
18
+ |---------------------------------------------------------------|----------------|
19
+ | [npm](https://docs.npmjs.com/cli/v7/commands/npm-install) | `npm install spacegt` |
20
+ | [pnpm](https://pnpm.io/installation) | `pnpm install spacegt` |
21
+
22
+ After completing the installation, your environment is ready for Spacegt development.
23
+
24
+ ```bash
25
+ import spacegt from "spacegt";
26
+
27
+ app.use(spacegt);
28
+ ```
29
+
30
+ ## 💡 Usage
31
+
32
+ This section covers how to start the development server and build your project for production.
33
+
34
+ ### Starting the Development Server
35
+
36
+ To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000):
37
+
38
+ ```bash
39
+ npm dev
40
+ ```
41
+
42
+ (Repeat for npm, pnpm, and bun with respective commands.)
43
+
44
+ > Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
45
+
46
+ ### Building for Production
47
+
48
+ To build your project for production, use:
49
+
50
+ ```bash
51
+ npm build
52
+ ```
53
+
54
+ (Repeat for npm, pnpm, and bun with respective commands.)
55
+
56
+ Once the build process is completed, your application will be ready for deployment in a production environment.
57
+
58
+ ### Login component
59
+
60
+ ```bash
61
+ <template>
62
+ <spacegt-login proxy="http://127.0.0.1:10002" email-proxy="http://127.0.0.1:13004" locale="zhHans" @login="onLogin" />
63
+ </template>
64
+
65
+ <script lang="ts" setup>
66
+ const onLogin = (data: any) => {
67
+ console.log(data)
68
+ }
69
+ </script>
70
+ ```
71
+
72
+ ### AIPPT component
73
+
74
+ ```bash
75
+ <template>
76
+ <spacegt-aippt @export-images="handleExportImages" />
77
+ </template>
78
+
79
+ <script lang="ts" setup>
80
+ const handleExportImages = (data: any) => {
81
+ console.log(data)
82
+ }
83
+ </script>
84
+ ```
85
+
86
+ ### myaccount component
87
+
88
+ ```bash
89
+ <template>
90
+ <v-app-bar>
91
+ <spacegt-myaccount :account="{ nickname: '王硕', avatar: 'https://cdn.vuetifyjs.com/images/john.png' }"
92
+ proxy="https://myaccount.spacegt.com" @logout="handleLogout" @login="handleLogin" @settings="handleSettings">
93
+ </spacegt-myaccount>
94
+ </v-app-bar>
95
+ </template>
96
+
97
+ <script lang="ts" setup>
98
+ const handleLogout = () => {
99
+ console.log("is logouted")
100
+ }
101
+
102
+ const handleLogin = () => {
103
+ console.log("to login")
104
+ }
105
+
106
+ const handleSettings = () => {
107
+ console.log("to settings")
108
+ }
109
+ </script>
110
+ ```
111
+
112
+ ## 📑 License
113
+ [MIT](http://opensource.org/licenses/MIT)
114
+
115
+ Copyright (c) 2016-present Spacegt, LLC
Binary file