@composy/log-viewer-vue 0.0.1

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.
Files changed (43) hide show
  1. package/README.md +46 -0
  2. package/dist/index.css +3 -0
  3. package/dist/index.js +260 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.min.css +3 -0
  6. package/dist/index.min.js +1 -0
  7. package/es/components/LogViewer.js +17 -0
  8. package/es/components/LogViewer.js.map +1 -0
  9. package/es/components/LogViewer.vue_vue_type_script_setup_true_lang.js +109 -0
  10. package/es/components/LogViewer.vue_vue_type_script_setup_true_lang.js.map +1 -0
  11. package/es/composables/useLogViewer.d.ts +116 -0
  12. package/es/composables/useLogViewer.d.ts.map +1 -0
  13. package/es/composables/useLogViewer.js +113 -0
  14. package/es/composables/useLogViewer.js.map +1 -0
  15. package/es/index.d.ts +15 -0
  16. package/es/index.d.ts.map +1 -0
  17. package/es/index.js +19 -0
  18. package/es/index.js.map +1 -0
  19. package/es/plugin.d.ts +8 -0
  20. package/es/plugin.d.ts.map +1 -0
  21. package/es/plugin.js +18 -0
  22. package/es/plugin.js.map +1 -0
  23. package/es/style/css.js +1 -0
  24. package/es/style/index.js +1 -0
  25. package/es/style/index.less +1 -0
  26. package/lib/components/LogViewer.cjs +21 -0
  27. package/lib/components/LogViewer.cjs.map +1 -0
  28. package/lib/components/LogViewer.vue_vue_type_script_setup_true_lang.cjs +109 -0
  29. package/lib/components/LogViewer.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  30. package/lib/composables/useLogViewer.cjs +114 -0
  31. package/lib/composables/useLogViewer.cjs.map +1 -0
  32. package/lib/composables/useLogViewer.d.ts +116 -0
  33. package/lib/index.cjs +53 -0
  34. package/lib/index.cjs.map +1 -0
  35. package/lib/index.d.ts +15 -0
  36. package/lib/package.json +3 -0
  37. package/lib/plugin.cjs +19 -0
  38. package/lib/plugin.cjs.map +1 -0
  39. package/lib/plugin.d.ts +8 -0
  40. package/lib/style/css.js +1 -0
  41. package/lib/style/index.css +2 -0
  42. package/lib/style/index.js +1 -0
  43. package/package.json +95 -0
package/lib/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @composy/log-viewer-vue
3
+ *
4
+ * 审计日志查看器 — Vue 3 适配层
5
+ * 提供 LogViewer 组件、useLogViewer 组合式函数和 Vue 插件
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export declare const VERSION = "0.1.0";
10
+ export { default as LogViewer } from './components/LogViewer.vue';
11
+ export { useLogViewer } from './composables/useLogViewer';
12
+ export { LogViewerPlugin } from './plugin';
13
+ export type { ActionType, ThemeMode, AnomalyType, DiffEntry, LogEntry, FilterConfig, PaginationConfig, LogViewerConfig, LogViewerInstance, LogViewerEvents, } from '@composy/log-viewer-core';
14
+ export { createLogViewer, ACTION_LABELS, ACTION_COLORS, formatDate, formatRelativeTime, } from '@composy/log-viewer-core';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
package/lib/plugin.cjs ADDED
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * ***********************************
3
+ * @composy/log-viewer-vue v0.0.1 *
4
+ * Built with rollup *
5
+ * Build time: 2024-08-17 11:42:24 *
6
+ * Build mode: production *
7
+ * Minified: No *
8
+ * ***********************************
9
+ */
10
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
11
+ const require_LogViewer = require("./components/LogViewer.cjs");
12
+ //#region src/plugin.ts
13
+ const LogViewerPlugin = { install(app) {
14
+ app.component("LogViewer", require_LogViewer.default);
15
+ } };
16
+ //#endregion
17
+ exports.LogViewerPlugin = LogViewerPlugin;
18
+ /*! End of @composy/log-viewer-vue | Powered by @composy/builder */
19
+ //# sourceMappingURL=plugin.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["/**\n * Vue 插件 - 全局注册 LogViewer 组件\n */\nimport type { App } from 'vue'\nimport LogViewer from './components/LogViewer.vue'\n\nexport const LogViewerPlugin = {\n install(app: App) {\n app.component('LogViewer', LogViewer)\n },\n}\n"],"mappings":";;;;;;;;;;;;AAMO,MAAM,kBAAkB,EAC7B,QAAQ,KAAU;CAChB,IAAI,UAAU,aAAa,kBAAA,OAAS;AACtC,EACF"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Vue 插件 - 全局注册 LogViewer 组件
3
+ */
4
+ import type { App } from 'vue';
5
+ export declare const LogViewerPlugin: {
6
+ install(app: App): void;
7
+ };
8
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -0,0 +1,2 @@
1
+
2
+ /*# sourceMappingURL=src/style/index.less.map */
@@ -0,0 +1 @@
1
+ import './index.css';
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@composy/log-viewer-vue",
3
+ "version": "0.0.1",
4
+ "description": "Vue components for @composy/log-viewer-core",
5
+ "keywords": [
6
+ "log-viewer",
7
+ "vue",
8
+ "vue3",
9
+ "vue2",
10
+ "component"
11
+ ],
12
+ "author": "LDesign Team",
13
+ "license": "MIT",
14
+ "type": "module",
15
+ "sideEffects": [
16
+ "*.vue",
17
+ "*.tsx",
18
+ "*.jsx",
19
+ "dist/*",
20
+ "es/**/style/**",
21
+ "esm/**/style/**"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./es/index.d.ts",
26
+ "import": "./es/index.js",
27
+ "require": "./lib/index.cjs",
28
+ "default": "./es/index.js"
29
+ },
30
+ "./composables/*": {
31
+ "types": "./es/composables/*.d.ts",
32
+ "import": "./es/composables/*.js",
33
+ "require": "./lib/composables/*.cjs",
34
+ "default": "./es/composables/*.js"
35
+ },
36
+ "./index.css": "./dist/index.css",
37
+ "./index.min.css": "./dist/index.min.css",
38
+ "./style/index.css": "./lib/style/index.css",
39
+ "./style/index.less": "./es/style/index.less",
40
+ "./package.json": "./package.json"
41
+ },
42
+ "main": "./lib/index.cjs",
43
+ "module": "./es/index.js",
44
+ "types": "./es/index.d.ts",
45
+ "unpkg": "./dist/index.min.js",
46
+ "jsdelivr": "./dist/index.min.js",
47
+ "files": [
48
+ "README.md",
49
+ "LICENSE",
50
+ "CHANGELOG.md",
51
+ "es",
52
+ "lib",
53
+ "dist"
54
+ ],
55
+ "scripts": {
56
+ "build": "ldesign-builder build",
57
+ "dev": "vite build --watch",
58
+ "lint": "eslint . --cache",
59
+ "lint:check": "eslint . --cache --max-warnings 0",
60
+ "lint:fix": "eslint . --cache --fix",
61
+ "test": "ltesting run:unit",
62
+ "test:coverage": "ltesting run:unit --coverage",
63
+ "test:watch": "ltesting run:unit --watch",
64
+ "test:run": "ltesting run:unit",
65
+ "test:changed": "ltesting run:unit --changed",
66
+ "test:failed": "ltesting run:unit --failed",
67
+ "test:ui": "ltesting dashboard"
68
+ },
69
+ "dependencies": {
70
+ "@composy/log-viewer-core": "^0.0.1",
71
+ "vue-demi": "^0.14.10"
72
+ },
73
+ "peerDependencies": {
74
+ "vue": "^2.7.0 || ^3.5.32"
75
+ },
76
+ "devDependencies": {
77
+ "@antfu/eslint-config": "9.1.0",
78
+ "@composy/builder": "^0.0.1",
79
+ "@composy/testing": "^0.0.1",
80
+ "@vue/test-utils": "^2.4.11",
81
+ "eslint": "10.7.0",
82
+ "fast-check": "^4.9.0",
83
+ "jsdom": "29.1.1",
84
+ "typescript": "5.9.3",
85
+ "vite": "^8.1.4",
86
+ "vue": "3.5.39",
87
+ "vue-tsc": "^3.3.7"
88
+ },
89
+ "publishConfig": {
90
+ "registry": "http://npm.longrise.cn:6286/"
91
+ },
92
+ "style": "./dist/style.css",
93
+ "typings": "./es/index.d.ts",
94
+ "browser": "./dist/index.js"
95
+ }