@akiraka/quark-big-screen-ui 0.1.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,15 @@
1
+ # @akiraka/quark-big-screen-ui
2
+
3
+ The single visual source for Quark big-screen cards. `QuarkAi` and `QuarkNovo` must consume this package instead of copying card CSS.
4
+
5
+ ## Scope
6
+
7
+ - shared big-screen tokens and card primitives
8
+ - reusable widget presentation components
9
+ - deterministic editor preview fixtures
10
+
11
+ It deliberately excludes application routing, authentication, API/SSE fetching, and either application's general UI library.
12
+
13
+ ## Release policy
14
+
15
+ Publish a new version whenever a shared visual component changes. Upgrade both consumers to the same version and run visual checks at 1920×1080 and 3440×1440.
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ accent?: string;
4
+ status?: string;
5
+ preview?: boolean;
6
+ };
7
+ declare var __VLS_1: {}, __VLS_3: {};
8
+ type __VLS_Slots = {} & {
9
+ header?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_3) => any;
12
+ };
13
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ title: string;
15
+ accent: string;
16
+ status: string;
17
+ preview: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //# sourceMappingURL=BigScreenPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigScreenPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/BigScreenPanel.vue"],"names":[],"mappings":"AAqCA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAgEF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe;WA3FX,MAAM;YACL,MAAM;YACN,MAAM;aACL,OAAO;6EA+FjB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BigScreenPreviewFixtures } from '../types';
2
+ /** Stable, representative data for editor previews. Never use it at runtime. */
3
+ export declare const bigScreenPreviewFixtures: BigScreenPreviewFixtures;
4
+ //# sourceMappingURL=big-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"big-screen.d.ts","sourceRoot":"","sources":["../../src/fixtures/big-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAExD,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,EAAE,wBAOtC,CAAA"}
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ :root{--qbs-surface-top: rgba(13, 24, 39, .92);--qbs-surface-bottom: rgba(8, 16, 28, .96);--qbs-border: rgba(142, 161, 178, .2);--qbs-text: #f6f8fb;--qbs-muted: #9fb2c7;--qbs-radius: 20px;--qbs-shadow: 0 18px 48px rgba(4, 10, 18, .28)}.qbs-panel[data-v-ba1d5ebb]{display:flex;height:100%;min-height:0;flex-direction:column;overflow:hidden;border:1px solid var(--qbs-border);border-radius:var(--qbs-radius);background:linear-gradient(180deg,var(--qbs-surface-top),var(--qbs-surface-bottom));box-shadow:inset 0 1px #ffffff0d,var(--qbs-shadow);color:var(--qbs-text)}.qbs-panel__header[data-v-ba1d5ebb]{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border-bottom:1px solid rgba(142,161,178,.14)}.qbs-panel__accent[data-v-ba1d5ebb]{width:8px;height:8px;border-radius:50%;background:var(--qbs-accent);box-shadow:0 0 0 6px color-mix(in srgb,var(--qbs-accent) 18%,transparent)}h3[data-v-ba1d5ebb]{margin:0;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.qbs-panel__status[data-v-ba1d5ebb]{margin-left:auto;color:var(--qbs-muted);font-size:11px}.qbs-panel__body[data-v-ba1d5ebb]{min-height:0;flex:1;padding:14px 16px 16px}
@@ -0,0 +1,4 @@
1
+ export { default as BigScreenPanel } from './components/BigScreenPanel.vue';
2
+ export { bigScreenPreviewFixtures } from './fixtures/big-screen';
3
+ export type { BigScreenPanelProps, BigScreenPreviewFixtures, BigScreenTone } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAChE,YAAY,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,49 @@
1
+ import { defineComponent as c, openBlock as a, createElementBlock as n, normalizeStyle as m, renderSlot as o, createElementVNode as l, toDisplayString as r, createCommentVNode as i } from "vue";
2
+ const b = {
3
+ key: 0,
4
+ class: "qbs-panel__header"
5
+ }, p = {
6
+ key: 0,
7
+ class: "qbs-panel__status"
8
+ }, g = { class: "qbs-panel__body" }, y = /* @__PURE__ */ c({
9
+ __name: "BigScreenPanel",
10
+ props: {
11
+ title: { default: "" },
12
+ accent: { default: "#8ca9c9" },
13
+ status: { default: "" },
14
+ preview: { type: Boolean, default: !1 }
15
+ },
16
+ setup(e) {
17
+ return (t, s) => (a(), n("section", {
18
+ class: "qbs-panel",
19
+ style: m({ "--qbs-accent": e.accent })
20
+ }, [
21
+ e.title || t.$slots.header ? (a(), n("header", b, [
22
+ o(t.$slots, "header", {}, () => [
23
+ s[0] || (s[0] = l("span", { class: "qbs-panel__accent" }, null, -1)),
24
+ l("h3", null, r(e.title), 1)
25
+ ], !0),
26
+ e.status || e.preview ? (a(), n("span", p, r(e.preview ? "预览" : e.status), 1)) : i("", !0)
27
+ ])) : i("", !0),
28
+ l("div", g, [
29
+ o(t.$slots, "default", {}, void 0, !0)
30
+ ])
31
+ ], 4));
32
+ }
33
+ }), v = (e, t) => {
34
+ const s = e.__vccOpts || e;
35
+ for (const [u, d] of t)
36
+ s[u] = d;
37
+ return s;
38
+ }, _ = /* @__PURE__ */ v(y, [["__scopeId", "data-v-ba1d5ebb"]]), h = {
39
+ robot: { status: "online", mode: "guard", emotion: "neutral", summary: { dutyGroups: 3, todayAlerts: 12, buildingCount: 4, endpointNodes: 86 } },
40
+ buildProjects: { summary: { buildingCount: 4, todayBuilds: 28, successRate: 98.6 }, items: [{ pipelineId: 1, buildId: 101, jobName: "eagle-eye-web", statusText: "构建中", currentStage: "测试", buildUser: "system", progress: 68 }] },
41
+ dutyToday: { totalGroups: 3, totalUsers: 8, groups: [{ groupId: 1, groupName: "平台组", users: [{ userId: 1, nickName: "张工", username: "zhang" }] }] },
42
+ alertLatest: { total: 3, items: [{ id: "preview-alert-1", level: "warning", title: "边缘节点延迟升高", createdAt: "10:24" }] },
43
+ buildDistribution: { items: [{ label: "应用构建", value: 42, tone: "info" }, { label: "镜像构建", value: 27, tone: "success" }] },
44
+ endpointDistribution: { nodes: [{ id: "edge-01", name: "边缘节点 01", status: "online" }, { id: "edge-02", name: "边缘节点 02", status: "warning" }] }
45
+ };
46
+ export {
47
+ _ as BigScreenPanel,
48
+ h as bigScreenPreviewFixtures
49
+ };
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.QuarkBigScreenUi={},n.Vue))})(this,(function(n,e){"use strict";const o={key:0,class:"qbs-panel__header"},i={key:0,class:"qbs-panel__status"},l={class:"qbs-panel__body"},r=((t,s)=>{const a=t.__vccOpts||t;for(const[c,u]of s)a[c]=u;return a})(e.defineComponent({__name:"BigScreenPanel",props:{title:{default:""},accent:{default:"#8ca9c9"},status:{default:""},preview:{type:Boolean,default:!1}},setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("section",{class:"qbs-panel",style:e.normalizeStyle({"--qbs-accent":t.accent})},[t.title||s.$slots.header?(e.openBlock(),e.createElementBlock("header",o,[e.renderSlot(s.$slots,"header",{},()=>[a[0]||(a[0]=e.createElementVNode("span",{class:"qbs-panel__accent"},null,-1)),e.createElementVNode("h3",null,e.toDisplayString(t.title),1)],!0),t.status||t.preview?(e.openBlock(),e.createElementBlock("span",i,e.toDisplayString(t.preview?"预览":t.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",l,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-ba1d5ebb"]]),d={robot:{status:"online",mode:"guard",emotion:"neutral",summary:{dutyGroups:3,todayAlerts:12,buildingCount:4,endpointNodes:86}},buildProjects:{summary:{buildingCount:4,todayBuilds:28,successRate:98.6},items:[{pipelineId:1,buildId:101,jobName:"eagle-eye-web",statusText:"构建中",currentStage:"测试",buildUser:"system",progress:68}]},dutyToday:{totalGroups:3,totalUsers:8,groups:[{groupId:1,groupName:"平台组",users:[{userId:1,nickName:"张工",username:"zhang"}]}]},alertLatest:{total:3,items:[{id:"preview-alert-1",level:"warning",title:"边缘节点延迟升高",createdAt:"10:24"}]},buildDistribution:{items:[{label:"应用构建",value:42,tone:"info"},{label:"镜像构建",value:27,tone:"success"}]},endpointDistribution:{nodes:[{id:"edge-01",name:"边缘节点 01",status:"online"},{id:"edge-02",name:"边缘节点 02",status:"warning"}]}};n.BigScreenPanel=r,n.bigScreenPreviewFixtures=d,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,16 @@
1
+ export type BigScreenTone = 'info' | 'success' | 'warning' | 'danger';
2
+ export interface BigScreenPanelProps {
3
+ title?: string;
4
+ accent?: string;
5
+ status?: string;
6
+ preview?: boolean;
7
+ }
8
+ export interface BigScreenPreviewFixtures {
9
+ robot: Record<string, unknown>;
10
+ buildProjects: Record<string, unknown>;
11
+ dutyToday: Record<string, unknown>;
12
+ alertLatest: Record<string, unknown>;
13
+ buildDistribution: Record<string, unknown>;
14
+ endpointDistribution: Record<string, unknown>;
15
+ }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAErE,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC1C,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9C"}
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@akiraka/quark-big-screen-ui",
3
+ "version": "0.1.0",
4
+ "description": "Shared visual components for Quark big-screen applications.",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "./dist/index.umd.cjs",
10
+ "module": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.umd.cjs"
17
+ },
18
+ "./style.css": "./dist/style.css"
19
+ },
20
+ "scripts": {
21
+ "build": "vue-tsc --noEmit && vite build",
22
+ "typecheck": "vue-tsc --noEmit"
23
+ },
24
+ "peerDependencies": {
25
+ "vue": "^3.5.0"
26
+ },
27
+ "devDependencies": {
28
+ "@vitejs/plugin-vue": "^6.0.0",
29
+ "typescript": "^5.6.0",
30
+ "vite": "^6.0.0",
31
+ "vite-plugin-dts": "^5.0.3",
32
+ "vue": "^3.5.0",
33
+ "vue-tsc": "^2.1.0"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ }
38
+ }