feat: update README with installation command and add debug logs in deploy command
- Added installation command for the CLI tool in README. - Enhanced deploy command with debug logging for upload results and query app version. - Integrated useKey for fetching KEVISUAL_TOKEN in get-config module. - Added debug logging in queryAppVersion for better traceability. - Updated temp.md with new dependency and example command for deployment.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { query, queryLogin } from '@/modules/query';
|
||||
import { clientQuery, queryLogin } from '@/modules/query';
|
||||
import { create } from 'zustand';
|
||||
import { toast } from 'react-toastify';
|
||||
type SettingState = {
|
||||
@@ -12,7 +12,7 @@ export const useStore = create<SettingState>((set => ({
|
||||
username: undefined,
|
||||
config: undefined,
|
||||
initAdmin: async () => {
|
||||
const res = await query.post({
|
||||
const res = await clientQuery.post({
|
||||
path: 'config'
|
||||
})
|
||||
console.log('initAdmin', res);
|
||||
@@ -25,7 +25,7 @@ export const useStore = create<SettingState>((set => ({
|
||||
}
|
||||
},
|
||||
login: async (username: string, password: string) => {
|
||||
const res = await query.post({
|
||||
const res = await clientQuery.post({
|
||||
path: 'admin',
|
||||
key: 'login',
|
||||
username,
|
||||
@@ -40,7 +40,7 @@ export const useStore = create<SettingState>((set => ({
|
||||
return res;
|
||||
},
|
||||
saveConfig: async (config: any) => {
|
||||
const res = await query.post({
|
||||
const res = await clientQuery.post({
|
||||
path: 'config',
|
||||
key: 'set',
|
||||
data: config
|
||||
|
||||
@@ -14,6 +14,10 @@ export const query = new QueryClient({
|
||||
url: getUrl()
|
||||
});
|
||||
|
||||
export const clientQuery = new QueryClient({
|
||||
url: '/client/router'
|
||||
});
|
||||
|
||||
export const remoteQuery = new Query({
|
||||
url: '/api/router'
|
||||
});
|
||||
|
||||
@@ -10,13 +10,13 @@ import Html from '@/components/html.astro';
|
||||
</div>
|
||||
|
||||
<div class="card-grid">
|
||||
<a href="./docs/" class="card">
|
||||
<a href={"/root/cli/docs/"} class="card">
|
||||
<div class="card-icon">📚</div>
|
||||
<h2>文档中心</h2>
|
||||
<p>查看完整的使用文档和API参考</p>
|
||||
</a>
|
||||
|
||||
<a href="./settings/" class="card">
|
||||
<a href={"/root/cli/settings/"} class="card">
|
||||
<div class="card-icon">⚙️</div>
|
||||
<h2>设置中心</h2>
|
||||
<p>配置和管理您的应用设置</p>
|
||||
|
||||
Reference in New Issue
Block a user