feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口

补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-23 18:01:47 +08:00
父节点 8ea9c25386
当前提交 62e0ae4435
共有 227 个文件被更改,包括 21855 次插入 和 5264 次删除

查看文件

@@ -96,7 +96,7 @@
class="form-input"
type="text"
v-model="editForm.title"
placeholder="例如:2026 全球智能硬件合规白皮书"
:placeholder="t('phTitle')"
/>
</view>
@@ -107,7 +107,7 @@
class="form-input"
type="text"
v-model="editForm.summary"
placeholder="若不填写将自动从正文中提取摘要..."
:placeholder="t('phSummary')"
/>
</view>
@@ -127,7 +127,7 @@
<textarea
class="form-textarea"
v-model="editForm.content"
placeholder="输入正文内容,支持段落与 Markdown..."
:placeholder="t('phContent')"
maxlength="2000"
></textarea>
</view>
@@ -136,7 +136,7 @@
<view class="form-field-switch">
<view class="switch-info">
<text class="switch-title">{{ t('fieldPublish') }}</text>
<text class="switch-desc">{{ publishDescText }}</text>
<text class="switch-desc">{{ t('publishDesc') }}</text>
</view>
<switch
:checked="editForm.isPublished"
@@ -157,7 +157,7 @@
:disabled="state.saving"
@click="handleSave"
>
<text class="primary-cta-btn-text">{{ state.saving ? savingText : t('saveBtn') }}</text>
<text class="primary-cta-btn-text">{{ state.saving ? t('saving') : t('saveBtn') }}</text>
</button>
</view>
</view>
@@ -201,16 +201,6 @@ const pageRtlClass = computed<string>(() => {
return isRtl(getCurrentLocale()) ? 'page-rtl' : '';
});
const publishDescText = computed<string>(() => {
return getCurrentLocale() === 'zh-CN'
? '开启后,全球访客可在您的名片微官网中直接浏览'
: 'When enabled, visitors can view this insight on your micro-site';
});
const savingText = computed<string>(() => {
return getCurrentLocale() === 'zh-CN' ? '保存中...' : 'Saving...';
});
const pageTheme: Record<string, string> = {
'--oc-primary': utsLightColors.primary,
'--oc-primary-gradient': utsLightColors.primaryGradient,
@@ -281,7 +271,7 @@ async function handleToggleStatus(item: CardArticle): Promise<void> {
const ok = await toggleArticlePublish(state, item);
if (ok) {
uni.showToast({
title: getCurrentLocale() === 'zh-CN' ? '状态已切换' : 'Status Updated',
title: t('statusUpdatedToast'),
icon: 'none',
});
}
@@ -291,7 +281,7 @@ async function handleSave(): Promise<void> {
const success = await saveArticle(state, editForm);
if (success) {
uni.showToast({
title: getCurrentLocale() === 'zh-CN' ? '动态已保存' : 'Article Saved',
title: t('savedToast'),
icon: 'none',
});
} else if (state.errorMessage !== '') {
@@ -302,20 +292,19 @@ async function handleSave(): Promise<void> {
}
}
async function handleDelete(item: CardArticle): void {
async function handleDelete(item: CardArticle): Promise<void> {
if (item.id == null) return;
const zh = getCurrentLocale() === 'zh-CN';
uni.showModal({
title: zh ? '确认删除' : 'Confirm Delete',
content: zh ? '确定要删除该文章动态吗?' : 'Are you sure you want to delete this article?',
confirmText: zh ? '删除' : 'Delete',
cancelText: zh ? '取消' : 'Cancel',
title: t('deleteConfirmTitle'),
content: t('deleteConfirmContent'),
confirmText: t('deleteConfirmOk'),
cancelText: t('cancelBtn'),
success: async (res: any) => {
if (res.confirm) {
const ok = await deleteArticle(state, item.id!);
if (ok) {
uni.showToast({
title: zh ? '已删除' : 'Deleted',
title: t('deletedToast'),
icon: 'none',
});
}