Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a4d6a669f |
@@ -75,8 +75,8 @@ jobs:
|
||||
- name: Ensure version not published
|
||||
if: ${{ steps.version.outputs.publish == 'true' }}
|
||||
run: |
|
||||
if npm view "@timi/web-api@${{ steps.version.outputs.version }}" version > /dev/null 2>&1; then
|
||||
echo "FAIL: @timi/web-api@${{ steps.version.outputs.version }} 已存在于 nexus,请提升 package.json 版本"
|
||||
if npm view "timi-web-api@${{ steps.version.outputs.version }}" version > /dev/null 2>&1; then
|
||||
echo "FAIL: timi-web-api@${{ steps.version.outputs.version }} 已存在于 nexus,请提升 package.json 版本"
|
||||
exit 1
|
||||
fi
|
||||
echo "OK: 版本未占用"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/cache
|
||||
/project.local.yml
|
||||
@@ -0,0 +1,176 @@
|
||||
# the name by which the project can be referenced within Serena/when chatting with the LLM.
|
||||
project_name: "timi-web-api"
|
||||
|
||||
# the encoding used by text files in the project
|
||||
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
|
||||
encoding: "utf-8"
|
||||
|
||||
# line ending convention to use when writing source files.
|
||||
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
|
||||
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
|
||||
line_ending:
|
||||
|
||||
# The language backend to use for this project.
|
||||
# If not set, the global setting from serena_config.yml is used.
|
||||
# Valid values: LSP, JetBrains
|
||||
# Note: the backend is fixed at startup. If a project with a different backend
|
||||
# is activated post-init, an error will be returned.
|
||||
language_backend:
|
||||
|
||||
# whether to use project's .gitignore files to ignore files
|
||||
ignore_all_files_in_gitignore: true
|
||||
|
||||
# advanced configuration option allowing to configure language server-specific options.
|
||||
# Maps the language key to the options.
|
||||
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
|
||||
ls_specific_settings: {}
|
||||
|
||||
# list of additional paths to ignore in this project.
|
||||
# Same syntax as gitignore, so you can use * and **.
|
||||
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
|
||||
# Example:
|
||||
# ignored_paths:
|
||||
# - "examples/**"
|
||||
# - ".worktrees/**"
|
||||
# - "**/bin/**"
|
||||
# - "**/obj/**"
|
||||
# Note: global ignored_paths from serena_config.yml are also applied additively.
|
||||
ignored_paths: []
|
||||
|
||||
# whether the project is in read-only mode
|
||||
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
|
||||
# Added on 2025-04-18
|
||||
read_only: false
|
||||
|
||||
# list of tool names to exclude.
|
||||
# This extends the existing exclusions (e.g. from the global configuration)
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
excluded_tools: []
|
||||
|
||||
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
|
||||
# This extends the existing inclusions (e.g. from the global configuration).
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
included_optional_tools: []
|
||||
|
||||
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
|
||||
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
|
||||
# Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
|
||||
fixed_tools: []
|
||||
|
||||
# list of mode names to that are always to be included in the set of active modes
|
||||
# The full set of modes to be activated is base_modes + default_modes.
|
||||
# If the setting is undefined, the base_modes from the global configuration (serena_config.yml) apply.
|
||||
# Otherwise, this setting overrides the global configuration.
|
||||
# Set this to [] to disable base modes for this project.
|
||||
# Set this to a list of mode names to always include the respective modes for this project.
|
||||
base_modes:
|
||||
|
||||
# list of mode names that are to be activated by default, overriding the setting in the global configuration.
|
||||
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
|
||||
# If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
|
||||
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
|
||||
# Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
|
||||
# for this project.
|
||||
# This setting can, in turn, be overridden by CLI parameters (--mode).
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
|
||||
default_modes:
|
||||
|
||||
# initial prompt for the project. It will always be given to the LLM upon activating the project
|
||||
# (contrary to the memories, which are loaded on demand).
|
||||
initial_prompt: ""
|
||||
|
||||
# time budget (seconds) per tool call for the retrieval of additional symbol information
|
||||
# such as docstrings or parameter information.
|
||||
# This overrides the corresponding setting in the global configuration; see the documentation there.
|
||||
# If null or missing, use the setting from the global configuration.
|
||||
symbol_info_budget:
|
||||
|
||||
# list of regex patterns which, when matched, mark a memory entry as read‑only.
|
||||
# Extends the list from the global configuration, merging the two lists.
|
||||
read_only_memory_patterns: []
|
||||
|
||||
# list of regex patterns for memories to completely ignore.
|
||||
# Matching memories will not appear in list_memories or activate_project output
|
||||
# and cannot be accessed via read_memory or write_memory.
|
||||
# To access ignored memory files, use the read_file tool on the raw file path.
|
||||
# Extends the list from the global configuration, merging the two lists.
|
||||
# Example: ["_archive/.*", "_episodes/.*"]
|
||||
ignored_memory_patterns: []
|
||||
|
||||
# list of language servers to start when using the LSP backend; choose from:
|
||||
# ada al angular ansible bash
|
||||
# bsl clojure cpp cpp_ccls crystal
|
||||
# csharp csharp_omnisharp cue dart deno
|
||||
# elixir elm erlang fortran fsharp
|
||||
# gdscript gleam go groovy haskell
|
||||
# haxe hlsl html java json
|
||||
# julia kotlin latex lean4 lua
|
||||
# luau markdown matlab msl nextflow
|
||||
# nix ocaml pascal perl php
|
||||
# php_phpactor php_phpantom powershell python python_basedpyright
|
||||
# python_jedi python_pyrefly python_ty qml r
|
||||
# rego ruby ruby_solargraph rust scala
|
||||
# scss solidity svelte swift systemverilog
|
||||
# terraform toml typescript typescript_vts vue
|
||||
# wolfram yaml zig
|
||||
# (This list may be outdated; generated with scripts/print_language_list.py;
|
||||
# For the current list, see values of the LanguageServerId enum here:
|
||||
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
|
||||
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
|
||||
# Note:
|
||||
# - For C, use cpp
|
||||
# - For JavaScript, use typescript
|
||||
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
|
||||
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
|
||||
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
|
||||
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
|
||||
# - For Free Pascal/Lazarus, use pascal
|
||||
# Special requirements:
|
||||
# Some language servers require additional setup/installations.
|
||||
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
|
||||
# When using multiple language servers, the first language server that supports a given file will be used for that file.
|
||||
# The first language server is the default language and the respective language server will be used as a fallback.
|
||||
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
|
||||
language_servers: []
|
||||
|
||||
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
|
||||
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
|
||||
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
|
||||
added_modes:
|
||||
|
||||
# list of workspace folder paths (LSP backend only).
|
||||
# These folders will be used to build up Serena's symbol index.
|
||||
# Paths must be within the project root and should thus be relative to the project root.
|
||||
# Furthermore, the paths should not be filtered by ignore settings.
|
||||
# Default setting: The entire project root folder (".") is considered.
|
||||
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
|
||||
# ls_workspace_folders:
|
||||
# - "./subproject1"
|
||||
# - "./subproject2"
|
||||
ls_workspace_folders:
|
||||
- .
|
||||
|
||||
# list of additional workspace folder paths for cross-package reference support.
|
||||
# Paths can be absolute or relative to the project root.
|
||||
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
|
||||
# symbols and references across package boundaries, but these folders are not indexed by Serena,
|
||||
# i.e. the respective symbols will not be found using Serena's symbol search tools.
|
||||
# Example:
|
||||
# additional_workspace_folders:
|
||||
# - ../sibling-package
|
||||
# - ../shared-lib
|
||||
ls_additional_workspace_folders: []
|
||||
|
||||
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
|
||||
# the command runs in the project root directory and is only executed if the project is trusted
|
||||
# (see trusted_project_path_patterns in the global configuration).
|
||||
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
|
||||
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
|
||||
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
|
||||
# example: activation_command: "npx nx run-many -t build"
|
||||
activation_command:
|
||||
|
||||
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
|
||||
# must be a positive number.
|
||||
activation_command_timeout: 180.0
|
||||
@@ -1,19 +1,19 @@
|
||||
# @timi/web-api
|
||||
# timi-web-api
|
||||
|
||||
Timi Web 的业务 API、领域类型、用户状态和权限相关能力。
|
||||
|
||||
通用组件与工具位于 [@timi/web](https://gitea.imyeyu.com/timi/timi-web),本项目使用自己的 Axios 网络层,并依赖它提供 Cookie、Storage 等通用工具。
|
||||
通用组件与工具位于 [timi-web](https://gitea.imyeyu.com/timi/timi-web),本项目使用自己的 Axios 网络层,并依赖它提供 Cookie、Storage 等通用工具。
|
||||
|
||||
## 依赖方向
|
||||
|
||||
本项目是独立的业务能力包。只有需要业务 API、领域类型、用户状态或权限能力的项目才安装 `@timi/web-api`;只使用通用组件的项目不需要安装本项目。
|
||||
本项目是独立的业务能力包。只有需要业务 API、领域类型、用户状态或权限能力的项目才安装 `timi-web-api`;只使用通用组件的项目不需要安装本项目。
|
||||
|
||||
```text
|
||||
只使用通用组件的业务项目 -> timi-tdesign-mobile / timi-tdesign-pc -> @timi/web
|
||||
需要业务能力的业务项目 -> @timi/web-api -> @timi/web
|
||||
只使用通用组件的业务项目 -> timi-tdesign-mobile / timi-tdesign-pc -> timi-web
|
||||
需要业务能力的业务项目 -> timi-web-api -> timi-web
|
||||
```
|
||||
|
||||
`timi-tdesign-mobile` 和 `timi-tdesign-pc` 不依赖 `@timi/web-api`。其中的文章、通知组件只约束 `Article`、`Attachment`、`NotifyDetail` 的最小字段,业务对象可以携带自定义字段,并通过上传和资源解析回调接入任意后端。
|
||||
`timi-tdesign-mobile` 和 `timi-tdesign-pc` 不依赖 `timi-web-api`。其中的文章、通知组件只约束 `Article`、`Attachment`、`NotifyDetail` 的最小字段,业务对象可以携带自定义字段,并通过上传和资源解析回调接入任意后端。
|
||||
|
||||
## 目录
|
||||
|
||||
|
||||
+6
-14
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@timi/web-api",
|
||||
"version": "2.0.0",
|
||||
"name": "timi-web-api",
|
||||
"version": "1.0.1",
|
||||
"description": "Timi Web 业务 API、领域类型和用户状态库",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
@@ -24,16 +24,8 @@
|
||||
"import": "./dist/editor/index.js",
|
||||
"require": "./dist/editor/index.js"
|
||||
},
|
||||
"./api/*": {
|
||||
"types": "./dist/api/*.d.ts",
|
||||
"import": "./dist/api/*.js",
|
||||
"require": "./dist/api/*.js"
|
||||
},
|
||||
"./utils/*": {
|
||||
"types": "./dist/utils/*.d.ts",
|
||||
"import": "./dist/utils/*.js",
|
||||
"require": "./dist/utils/*.js"
|
||||
},
|
||||
"./api/*": "./dist/api/*",
|
||||
"./utils/*": "./dist/utils/*",
|
||||
"./store": {
|
||||
"types": "./dist/store/index.d.ts",
|
||||
"import": "./dist/store/index.js",
|
||||
@@ -56,11 +48,11 @@
|
||||
"check": "tsc --noEmit"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@timi/web": "2.0.1",
|
||||
"timi-web": "^1.0.0",
|
||||
"vue": "^3.5.26"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "1.20.0",
|
||||
"axios": "^1.18.0",
|
||||
"pinia": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Generated
+55
-56
@@ -8,15 +8,15 @@ importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
'@timi/web':
|
||||
specifier: 2.0.1
|
||||
version: 2.0.1(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))(typescript@5.9.3)(vue@3.5.41(typescript@5.9.3))
|
||||
axios:
|
||||
specifier: 1.20.0
|
||||
version: 1.20.0
|
||||
specifier: ^1.18.0
|
||||
version: 1.18.0
|
||||
pinia:
|
||||
specifier: ^3.0.2
|
||||
version: 3.0.4(typescript@5.9.3)(vue@3.5.41(typescript@5.9.3))
|
||||
timi-web:
|
||||
specifier: ^1.0.0
|
||||
version: 1.0.0(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))(typescript@5.9.3)(vue@3.5.41(typescript@5.9.3))
|
||||
vue:
|
||||
specifier: ^3.5.26
|
||||
version: 3.5.41(typescript@5.9.3)
|
||||
@@ -146,14 +146,6 @@ packages:
|
||||
'@marsio/vue-split-pane@1.0.0':
|
||||
resolution: {integrity: sha512-7XEaVDjVhnoYSVcbgPvONT/U3F6n/oKbcNaj0i+lE2EfP2P38kIKyhHbSgbSGx+8i/DAP5vQtcjLIcleWb4N+A==}
|
||||
|
||||
'@timi/ts@1.0.0':
|
||||
resolution: {integrity: sha512-0NFi1+CnonZTcf73IeDdcd5Qoqnt/EdESI448wHfdbd5mk6gRqJNzb82z03SHOCJlIOiLUPvBgctAVLbB58V1A==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
|
||||
'@timi/web@2.0.1':
|
||||
resolution: {integrity: sha512-PSj4lK96WGP+pHfUMT6Yvpi+wLr3z5jhsVN7TWkvko3nNY9O4MFtgf/20y0Db/OWLEbt3WJ2RGfA9SbxrP6Kcw==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
|
||||
'@tiptap/core@3.33.0':
|
||||
resolution: {integrity: sha512-sZjBCwK9+h0kbc/CZvkepX6RTJ2jOfeWY1aId9O3YnG0CAiOs/4DbqFmpcmv5BQAGPA6gC96gqdafa/9Dpg0tw==}
|
||||
peerDependencies:
|
||||
@@ -411,8 +403,8 @@ packages:
|
||||
asynckit@0.4.0:
|
||||
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
|
||||
|
||||
axios@1.20.0:
|
||||
resolution: {integrity: sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==}
|
||||
axios@1.18.0:
|
||||
resolution: {integrity: sha512-E32NzpYKp++W7XRe52rHiXV2ehxmh3wbdgO7MHeFM+vqxLBYHzt0ElkiImtOBxtOmyp0yoC8C6uESVV84Y2/hw==}
|
||||
|
||||
babel-plugin-macros@3.1.0:
|
||||
resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==}
|
||||
@@ -580,7 +572,6 @@ packages:
|
||||
image-size@0.5.5:
|
||||
resolution: {integrity: sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
deprecated: Please migrate to image-size@2.x
|
||||
hasBin: true
|
||||
|
||||
import-fresh@3.3.1:
|
||||
@@ -841,6 +832,14 @@ packages:
|
||||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
|
||||
timi-ts@1.0.0:
|
||||
resolution: {integrity: sha512-MR9LJGH4/UEgzzrc1yVdxypTcoQRASt8xns2z5xNyoXr2e0kdXv8sjnuRshp3uZnOCU/pSks1LeLi9OvC2U/7g==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
|
||||
timi-web@1.0.0:
|
||||
resolution: {integrity: sha512-9PcpA0jtEigGyLLswOYvYeeJ8ktu8MXApKD2WeFuAQ6rdiNp2+FLVPYHYB1qbh9YiMV+zUr7efvyn8cFCCwszw==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
|
||||
tslib@2.8.1:
|
||||
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
||||
|
||||
@@ -885,7 +884,7 @@ snapshots:
|
||||
'@babel/helper-module-imports@7.29.7':
|
||||
dependencies:
|
||||
'@babel/traverse': 7.29.13
|
||||
'@babel/types': 7.29.11
|
||||
'@babel/types': 7.29.8
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
@@ -1036,44 +1035,6 @@ snapshots:
|
||||
- supports-color
|
||||
- typescript
|
||||
|
||||
'@timi/ts@1.0.0': {}
|
||||
|
||||
'@timi/web@2.0.1(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))(typescript@5.9.3)(vue@3.5.41(typescript@5.9.3))':
|
||||
dependencies:
|
||||
'@marsio/vue-split-pane': 1.0.0(typescript@5.9.3)
|
||||
'@timi/ts': 1.0.0
|
||||
'@tiptap/extension-code-block': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-color': 3.33.0(@tiptap/extension-text-style@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0)))
|
||||
'@tiptap/extension-image': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-link': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-placeholder': 3.33.0(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-subscript': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-superscript': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-table': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-table-cell': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-table-header': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-table-row': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-text-align': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-text-style': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-underline': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/pm': 3.33.0
|
||||
'@tiptap/starter-kit': 3.33.0
|
||||
'@tiptap/vue-3': 3.33.0(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)(vue@3.5.41(typescript@5.9.3))
|
||||
less: 4.5.1
|
||||
marked: 17.0.6
|
||||
marked-gfm-heading-id: 4.1.4(marked@17.0.6)
|
||||
marked-highlight: 2.2.4(marked@17.0.6)
|
||||
marked-mangle: 1.1.13(marked@17.0.6)
|
||||
prismjs: 1.30.0
|
||||
terser: 5.50.0
|
||||
transitivePeerDependencies:
|
||||
- '@floating-ui/dom'
|
||||
- '@tiptap/core'
|
||||
- '@tiptap/extensions'
|
||||
- supports-color
|
||||
- typescript
|
||||
- vue
|
||||
|
||||
'@tiptap/core@3.33.0(@tiptap/pm@3.33.0)':
|
||||
dependencies:
|
||||
'@tiptap/pm': 3.33.0
|
||||
@@ -1371,7 +1332,7 @@ snapshots:
|
||||
|
||||
asynckit@0.4.0: {}
|
||||
|
||||
axios@1.20.0:
|
||||
axios@1.18.0:
|
||||
dependencies:
|
||||
follow-redirects: 1.16.0
|
||||
form-data: 4.0.6
|
||||
@@ -1799,6 +1760,44 @@ snapshots:
|
||||
commander: 2.20.3
|
||||
source-map-support: 0.5.21
|
||||
|
||||
timi-ts@1.0.0: {}
|
||||
|
||||
timi-web@1.0.0(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))(typescript@5.9.3)(vue@3.5.41(typescript@5.9.3)):
|
||||
dependencies:
|
||||
'@marsio/vue-split-pane': 1.0.0(typescript@5.9.3)
|
||||
'@tiptap/extension-code-block': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-color': 3.33.0(@tiptap/extension-text-style@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0)))
|
||||
'@tiptap/extension-image': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-link': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-placeholder': 3.33.0(@tiptap/extensions@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-subscript': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-superscript': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-table': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)
|
||||
'@tiptap/extension-table-cell': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-table-header': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-table-row': 3.33.0(@tiptap/extension-table@3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-text-align': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-text-style': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/extension-underline': 3.33.0(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))
|
||||
'@tiptap/pm': 3.33.0
|
||||
'@tiptap/starter-kit': 3.33.0
|
||||
'@tiptap/vue-3': 3.33.0(@floating-ui/dom@1.8.0)(@tiptap/core@3.33.0(@tiptap/pm@3.33.0))(@tiptap/pm@3.33.0)(vue@3.5.41(typescript@5.9.3))
|
||||
less: 4.5.1
|
||||
marked: 17.0.6
|
||||
marked-gfm-heading-id: 4.1.4(marked@17.0.6)
|
||||
marked-highlight: 2.2.4(marked@17.0.6)
|
||||
marked-mangle: 1.1.13(marked@17.0.6)
|
||||
prismjs: 1.30.0
|
||||
terser: 5.50.0
|
||||
timi-ts: 1.0.0
|
||||
transitivePeerDependencies:
|
||||
- '@floating-ui/dom'
|
||||
- '@tiptap/core'
|
||||
- '@tiptap/extensions'
|
||||
- supports-color
|
||||
- typescript
|
||||
- vue
|
||||
|
||||
tslib@2.8.1: {}
|
||||
|
||||
typescript@5.9.3: {}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* 负责统一内容类型、附件标识和存储前的富文本格式,平台层不参与这些规则。
|
||||
*/
|
||||
import type { ArticleContentType, Attachment } from "../types";
|
||||
import { ATTACHMENT_ID_ATTR, isLocalMediaId, normalizeContent, TEMP_FILE_ID_ATTR } from "@timi/web/editor";
|
||||
import { ATTACHMENT_ID_ATTR, isLocalMediaId, normalizeContent, TEMP_FILE_ID_ATTR } from "timi-web/editor";
|
||||
|
||||
/** 文章内容中附件和临时文件的标识前缀。 */
|
||||
export const ATTACHMENT_ID_PREFIX = "attachment-id:";
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/** 业务编辑器数据适配和通用编辑器能力出口。 */
|
||||
export * from "@timi/web/editor";
|
||||
export * from "timi-web/editor";
|
||||
export * from "./article";
|
||||
export * from "./notify";
|
||||
export type { Article, ArticleContentType } from "../types/Article";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {defineStore} from "pinia";
|
||||
import {computed, reactive, readonly, ref} from "vue";
|
||||
import type {CaptchaData, LoginRequest, LoginResponse, LoginUser} from "../types";
|
||||
import {Cooker, Storage} from "@timi/web";
|
||||
import {Cooker, Storage} from "timi-web";
|
||||
import {UserAPI} from "../api";
|
||||
|
||||
/** 用户 Store 配置项 */
|
||||
|
||||
Reference in New Issue
Block a user