@next-bricks/ai-portal 0.65.8 → 0.67.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/dist/bricks.json +53 -39
- package/dist/chunks/1750.ba9f8f80.js +2 -0
- package/dist/chunks/1750.ba9f8f80.js.map +1 -0
- package/dist/chunks/chat-box.060b8727.js +3 -0
- package/dist/chunks/chat-box.060b8727.js.map +1 -0
- package/dist/chunks/{main.aced41aa.js → main.659aac54.js} +2 -2
- package/dist/chunks/{main.aced41aa.js.map → main.659aac54.js.map} +1 -1
- package/dist/chunks/set-chat-mentioned-employee.69199eec.js +2 -0
- package/dist/chunks/set-chat-mentioned-employee.69199eec.js.map +1 -0
- package/dist/chunks/space-logo.994f7a25.js +2 -0
- package/dist/chunks/space-logo.994f7a25.js.map +1 -0
- package/dist/chunks/space-workbench.964b8644.js +2 -0
- package/dist/chunks/space-workbench.964b8644.js.map +1 -0
- package/dist/examples.json +17 -14
- package/dist/images/2f7ddbac.svg +6 -0
- package/dist/{index.0efd927c.js → index.bdb0052a.js} +2 -2
- package/dist/index.bdb0052a.js.map +1 -0
- package/dist/manifest.json +379 -307
- package/dist/types.json +515 -218
- package/dist-types/bootstrap.d.ts +3 -0
- package/dist-types/data-providers/set-chat-mentioned-employee.d.ts +7 -0
- package/dist-types/data-providers/set-chat-mentioned-employee.spec.d.ts +1 -0
- package/dist-types/space-workbench/components/SpaceGuide/SpaceGuide.d.ts +13 -0
- package/dist-types/space-workbench/components/SpaceGuide/SpaceGuide.spec.d.ts +1 -0
- package/dist-types/space-workbench/components/SpaceNav/SpaceNav.d.ts +22 -0
- package/dist-types/space-workbench/components/SpaceNav/SpaceNav.spec.d.ts +1 -0
- package/dist-types/space-workbench/i18n.d.ts +19 -0
- package/dist-types/space-workbench/index.d.ts +20 -0
- package/dist-types/space-workbench/index.spec.d.ts +1 -0
- package/dist-types/space-workbench/interfaces.d.ts +5 -0
- package/dist-types/space-workbench/space-logo/index.d.ts +15 -0
- package/dist-types/space-workbench/space-logo/index.spec.d.ts +1 -0
- package/docs/space-workbench.md +78 -0
- package/package.json +2 -2
- package/dist/chunks/2742.64fa013f.js +0 -2
- package/dist/chunks/2742.64fa013f.js.map +0 -1
- package/dist/chunks/chat-box.3ae83b4f.js +0 -3
- package/dist/chunks/chat-box.3ae83b4f.js.map +0 -1
- package/dist/index.0efd927c.js.map +0 -1
- /package/dist/chunks/{chat-box.3ae83b4f.js.LICENSE.txt → chat-box.060b8727.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/set-chat-mentioned-employee.69199eec.js","mappings":"0OAEA,IAAIA,EAA6C,KAO1C,SAASC,EACdC,GAEAF,EAAeE,CACjB,CAEO,SAASC,IACd,OAAOH,CACT,CAEAI,eAAeC,OACb,yCACAC,EAAAA,EAAAA,qBAAoBL,G","sources":["webpack:///./src/data-providers/set-chat-mentioned-employee.ts"],"sourcesContent":["import { createProviderClass } from \"@next-core/utils/general\";\n\nlet chatEmployee: ChatMentionedEmployee | null = null;\n\ninterface ChatMentionedEmployee {\n name: string;\n employeeId: string;\n}\n\nexport function setChatMentionedEmployee(\n chatMentionedEmployee: ChatMentionedEmployee | null\n): void {\n chatEmployee = chatMentionedEmployee;\n}\n\nexport function getChatMentionedEmployee(): ChatMentionedEmployee | null {\n return chatEmployee;\n}\n\ncustomElements.define(\n \"ai-portal.set-chat-mentioned-employee\",\n createProviderClass(setChatMentionedEmployee)\n);\n"],"names":["chatEmployee","setChatMentionedEmployee","chatMentionedEmployee","getChatMentionedEmployee","customElements","define","createProviderClass"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,6733],{11369:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(17545);function o(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},12559:(t,e,n)=>{function r(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>r})},17545:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},21413:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(36758),o=n.n(r),i=n(40935),a=n.n(i)()(o());a.push([t.id,":host{display:inline-block}:host([hidden]){display:none}.space-logo{display:flex;align-items:center;justify-content:center;background:#2540ff;border-radius:16px;box-shadow:0px 10px 15px -3px rgba(37,64,255,0.2),0px 4px 6px -4px rgba(37,64,255,0.2)}.space-logo img{width:100%;height:100%;object-fit:contain}",""]);const c=a.toString()},26902:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(17545);function o(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==t?(0,r.A)(t):"null"));return t}},36758:t=>{t.exports=function(t){return t[1]}},40935:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},59498:(t,e,n)=>{t.exports=n.p+"images/2f7ddbac.svg"},62740:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(17545),o=n(26902);function i(t,e,n){"symbol"==(0,r.A)(e)&&(e=(e=e.description)?"["+e+"]":"");try{Object.defineProperty(t,"name",{configurable:!0,value:n?n+" "+e:e})}catch(t){}return t}var a=n(11369);function c(t,e,n,c,s,u){var l,f,p,d,h,v,g,m=Symbol.metadata||Symbol.for("Symbol.metadata"),b=Object.defineProperty,y=Object.create,A=[y(null),y(null)],w=e.length;function x(e,n,r){return function(o,i){n&&(i=o,o=t);for(var a=0;a<e.length;a++)i=e[a].apply(o,r?[i]:[]);return r?i:o}}function j(t,e,n,r){if("function"!=typeof t&&(r||void 0!==t))throw new TypeError(e+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return t}function E(t,e,n,o,a,c,s,u,p,d,h){function v(t){if(!h(t))throw new TypeError("Attempted to access private element on non-instance")}var g=[].concat(e[0]),m=e[3],y=!s,w=1===a,E=3===a,S=4===a,k=2===a;function z(e,n,r){return function(o,i){return n&&(i=o,o=t),r&&r(o),T[e].call(o,i)}}if(!y){var T={},_=[],O=E?"get":S||w?"set":"value";if(p?(d||w?T={get:i((function(){return m(this)}),o,"get"),set:function(t){e[4](this,t)}}:T[O]=m,d||i(T[O],o,k?"":O)):d||(T=Object.getOwnPropertyDescriptor(t,o)),!d&&!p){if((f=A[+u][o])&&7!=(f^a))throw Error("Decorating two elements with the same name ("+T[O].name+") is not supported yet");A[+u][o]=a<3?1:a}}for(var P=t,$=g.length-1;$>=0;$-=n?2:1){var N=j(g[$],"A decorator","be",!0),C=n?g[$-1]:void 0,D={},M={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:l,addInitializer:function(t,e){if(t.v)throw Error("attempted to call addInitializer after decoration was finished");j(e,"An initializer","be",!0),c.push(e)}.bind(null,D)};if(y)f=N.call(C,P,M),D.v=1,j(f,"class decorators","return")&&(P=f);else if(M.static=u,M.private=p,f=M.access={has:p?h.bind():function(t){return o in t}},S||(f.get=p?k?function(t){return v(t),T.value}:z("get",0,v):function(t){return t[o]}),k||E||(f.set=p?z("set",0,v):function(t,e){t[o]=e}),P=N.call(C,w?{get:T.get,set:T.set}:T[O],M),D.v=1,w){if("object"==(0,r.A)(P)&&P)(f=j(P.get,"accessor.get"))&&(T.get=f),(f=j(P.set,"accessor.set"))&&(T.set=f),(f=j(P.init,"accessor.init"))&&_.unshift(f);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else j(P,(d?"field":"method")+" decorators","return")&&(d?_.unshift(P):T[O]=P)}return a<2&&s.push(x(_,u,1),x(c,u,0)),d||y||(p?w?s.splice(-1,0,z("get",u),z("set",u)):s.push(k?T[O]:j.call.bind(T[O])):b(t,o,T)),P}function S(t){return b(t,m,{configurable:!0,enumerable:!0,value:l})}return void 0!==u&&(l=u[m]),l=y(null==l?null:l),h=[],v=function(t){t&&h.push(x(t))},g=function(e,r){for(var i=0;i<n.length;i++){var c=n[i],u=c[1],l=7&u;if((8&u)==e&&!l==r){var f=c[2],v=!!c[3],g=16&u;E(e?t:t.prototype,c,g,v?"#"+f:(0,a.A)(f),l,l<2?[]:e?d=d||[]:p=p||[],h,!!e,v,r,e&&v?function(e){return(0,o.A)(e)===t}:s)}}},g(8,0),g(0,0),g(8,1),g(0,1),v(p),v(d),f=h,w||S(t),{e:f,get c(){var n=[];return w&&[S(t=E(t,[e],c,t.name,5,n)),x(n,1)]}}}},70829:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(12559);function o(t,e){return t.get((0,r.A)(t,e))}},70918:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(72016);function o(t,e,n){(0,r.A)(t,e),e.set(t,n)}},72016:(t,e,n)=>{function r(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>r})},84136:(t,e,n)=>{n.r(e),n.d(e,{SpaceLogo:()=>y});var r,o=n(70918),i=n(86121),a=n(70829),c=n(62740),s=n(18769),u=n.n(s),l=n(90870),f=n(30981),p=(n(34419),n(59498)),d=n(21413);let h,v,g;const{defineElement:m,property:b}=(0,l.createDecorators)();let y;var A=new WeakMap;class w extends f.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,A,v(this)),g(this)}get size(){return(0,a.A)(A,this)}set size(t){(0,i.A)(A,this,t)}render(){return u().createElement(x,{size:this.size})}}function x(t){let{size:e=48}=t;const n=Math.round(.875*e),r=Math.round(.25*e);return u().createElement("div",{className:"space-logo",style:{width:`${e}px`,height:`${e}px`,borderRadius:`${r}px`}},u().createElement("img",{src:p,alt:"Space Logo",style:{width:`${n}px`,height:`${n}px`}}))}r=w,({e:[v,g],c:[y,h]}=(0,c.A)(r,[m("ai-portal.space-logo",{styleTexts:[d.A]})],[[b({type:Number}),1,"size"]],0,void 0,f.ReactNextElement)),h()},86121:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(12559);function o(t,e,n){return t.set((0,r.A)(t,e),n),n}}}]);
|
|
2
|
+
//# sourceMappingURL=space-logo.994f7a25.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/space-logo.994f7a25.js","mappings":"kLAEe,SAASA,EAAcC,GACpC,IAAIC,ECFS,SAAqBD,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIE,EAAIF,EAAEG,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKL,EAAGM,UAClB,GAAI,WAAY,OAAQL,GAAI,OAAOA,EACnC,MAAM,IAAIM,UAAU,+CACtB,CACA,OAA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kDCrBzB,SAASM,EAAuBpF,EAAGH,EAAG7C,GACnD,OAAOgD,EAAEwB,KAAI,OAAiBxB,EAAGH,GAAI7C,GAAIA,CAC3C,C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///./src/space-workbench/space-logo/styles.shadow.css","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///./src/space-workbench/space-logo/index.tsx","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:inline-block}:host([hidden]){display:none}.space-logo{display:flex;align-items:center;justify-content:center;background:#2540ff;border-radius:16px;box-shadow:0px 10px 15px -3px rgba(37,64,255,0.2),0px 4px 6px -4px rgba(37,64,255,0.2)}.space-logo img{width:100%;height:100%;object-fit:contain}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2311(e, t, n, r, o, i) {\n var a,\n c,\n u,\n s,\n f,\n l,\n p,\n d = Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"),\n m = Object.defineProperty,\n h = Object.create,\n y = [h(null), h(null)],\n v = t.length;\n function g(t, n, r) {\n return function (o, i) {\n n && (i = o, o = e);\n for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);\n return r ? i : o;\n };\n }\n function b(e, t, n, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, n, r, o, i, u, s, f, l, p) {\n function d(e) {\n if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var h = [].concat(t[0]),\n v = t[3],\n w = !u,\n D = 1 === o,\n S = 3 === o,\n j = 4 === o,\n E = 2 === o;\n function I(t, n, r) {\n return function (o, i) {\n return n && (i = o, o = e), r && r(o), P[t].call(o, i);\n };\n }\n if (!w) {\n var P = {},\n k = [],\n F = S ? \"get\" : j || D ? \"set\" : \"value\";\n if (f ? (l || D ? P = {\n get: setFunctionName(function () {\n return v(this);\n }, r, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : P[F] = v, l || setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {\n if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\");\n y[+s][r] = o < 3 ? 1 : o;\n }\n }\n for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {\n var z = b(h[O], \"A decorator\", \"be\", !0),\n A = n ? h[O - 1] : void 0,\n H = {},\n K = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: r,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw Error(\"attempted to call addInitializer after decoration was finished\");\n b(t, \"An initializer\", \"be\", !0), i.push(t);\n }.bind(null, H)\n };\n if (w) c = z.call(A, N, K), H.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (K[\"static\"] = s, K[\"private\"] = f, c = K.access = {\n has: f ? p.bind() : function (e) {\n return r in e;\n }\n }, j || (c.get = f ? E ? function (e) {\n return d(e), P.value;\n } : I(\"get\", 0, d) : function (e) {\n return e[r];\n }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) {\n e[r] = t;\n }), N = z.call(A, D ? {\n get: P.get,\n set: P.set\n } : P[F], K), H.v = 1, D) {\n if (\"object\" == _typeof(N) && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\");\n } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N);\n }\n return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;\n }\n function w(e) {\n return m(e, d, {\n configurable: !0,\n enumerable: !0,\n value: a\n });\n }\n return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {\n e && f.push(g(e));\n }, p = function p(t, r) {\n for (var i = 0; i < n.length; i++) {\n var a = n[i],\n c = a[1],\n l = 7 & c;\n if ((8 & c) == t && !l == r) {\n var p = a[2],\n d = !!a[3],\n m = 16 & c;\n applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {\n return checkInRHS(t) === e;\n } : o);\n }\n }\n }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {\n e: c,\n get c() {\n var n = [];\n return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];\n }\n };\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import React from \"react\";\nimport { createDecorators } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport spaceLogoSvg from \"../images/space-logo.svg?url\";\nimport styleText from \"./styles.shadow.css\";\n\nconst { defineElement, property } = createDecorators();\n\nexport interface SpaceLogoProps {\n size?: number;\n}\n\n/**\n * 构件 `ai-portal.space-logo`\n *\n * 协作空间的 Logo 展示组件\n */\nexport\n@defineElement(\"ai-portal.space-logo\", {\n styleTexts: [styleText],\n})\nclass SpaceLogo extends ReactNextElement implements SpaceLogoProps {\n @property({ type: Number })\n accessor size: number | undefined;\n\n render() {\n return <SpaceLogoComponent size={this.size} />;\n }\n}\n\nfunction SpaceLogoComponent({ size = 48 }: SpaceLogoProps) {\n const iconSize = Math.round(size * 0.875); // 图标为容器的 87.5%\n const borderRadius = Math.round(size * 0.25); // 圆角为容器的 25%\n\n return (\n <div\n className=\"space-logo\"\n style={{\n width: `${size}px`,\n height: `${size}px`,\n borderRadius: `${borderRadius}px`,\n }}\n >\n <img\n src={spaceLogoSvg}\n alt=\"Space Logo\"\n style={{\n width: `${iconSize}px`,\n height: `${iconSize}px`,\n }}\n />\n </div>\n );\n}\n","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}"],"names":["toPropertyKey","t","i","e","Symbol","toPrimitive","call","r","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","___CSS_LOADER_EXPORT___","push","module","id","toString","_checkInRHS","Object","exports","cssWithMappingToString","list","this","map","item","content","needLayer","concat","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","setFunctionName","description","defineProperty","configurable","value","applyDecs2311","a","c","u","s","f","l","p","d","metadata","m","h","create","y","v","g","apply","b","applyDec","w","D","S","j","E","I","P","F","get","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","K","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","_classPrivateFieldGet2","_classPrivateFieldInitSpec","obj","privateMap","_checkPrivateRedeclaration","privateCollection","defineElement","property","createDecorators","_SpaceLogo","_A","WeakMap","SpaceLogo","ReactNextElement","_init_size","_init_extra_size","size","_classPrivateFieldGet","_classPrivateFieldSet","render","React","SpaceLogoComponent","_ref","iconSize","Math","round","borderRadius","className","style","width","height","src","spaceLogoSvg","alt","_SpaceLogo2","_initClass","_applyDecs","styleTexts","styleText","type","Number","_classPrivateFieldSet2"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_ai_portal=globalThis.webpackChunk_next_bricks_ai_portal||[]).push([[2052,6715],{5536:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(12559);function o(e,t,n){return n((0,i.A)(e,t))}},11369:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(17545);function o(e){var t=function(e){if("object"!=(0,i.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,i.A)(t)?t:t+""}},12559:(e,t,n)=>{function i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>i})},17545:(e,t,n)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{A:()=>i})},20062:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},26902:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(17545);function o(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?(0,i.A)(e):"null"));return e}},32360:(e,t,n)=>{e.exports=n.p+"images/72c24398.png"},33950:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(36758),o=n.n(i),r=n(40935),a=n.n(r)()(o());a.push([e.id,".space-workbench-header{display:flex;align-items:center;justify-content:space-between;padding:12px 24px}.header-left{display:flex;align-items:center;gap:12px;flex:1}.space-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#2540ff;box-shadow:0px 4px 4px 0px rgba(37,64,255,0.1);overflow:hidden;flex-shrink:0}.space-icon img{width:28px;height:28px;object-fit:cover}.space-title{margin:0;font-size:18px;font-weight:600;color:rgba(0,0,0,0.85);line-height:28px}.action-icons{display:flex;align-items:center;gap:4px;margin-left:16px}.header-right{display:flex;align-items:center;gap:16px;position:relative}.divider{width:1px;height:20px;background-color:rgba(0,0,0,0.15)}.icon-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:8px;background:none;cursor:pointer;color:inherit;flex-shrink:0;transition:background-color 0.2s ease}.icon-button eo-icon{font-size:16px;color:rgba(0,0,0,0.65);transition:color 0.2s ease}.icon-button:hover{background:rgba(0,0,0,0.04)}.icon-button:active{background:rgba(0,0,0,0.08)}.icon-button:focus{outline:none}.icon-button.active{background:rgba(0,0,0,0.06)}.space-description{padding:18px 20px;background-color:rgba(184,187,205,0.2);border-radius:12px;margin:4px 24px;display:flex;flex-direction:column;gap:11px;overflow:hidden;animation:slideDown 0.3s ease-out;transform-origin:top;position:relative}@keyframes slideDown{from{opacity:0;transform:translateY(-10px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}to{opacity:1;transform:translateY(0);max-height:500px;margin-top:4px;margin-bottom:12px;padding-top:18px;padding-bottom:18px}}.description-header{display:flex;align-items:center;justify-content:space-between}.description-title{font-size:14px;font-weight:500;line-height:15px;color:rgba(0,0,0,0.85);text-transform:uppercase;letter-spacing:0.6172px;margin:0}.description-edit-button{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:none;cursor:pointer;color:rgba(0,0,0,0.45);transition:all 0.2s ease;flex-shrink:0}.description-edit-button eo-icon{font-size:14px;color:rgba(0,0,0,0.45);transition:color 0.2s ease}.description-edit-button:hover{background:rgba(0,0,0,0.06)}.description-edit-button:hover eo-icon{color:rgba(0,0,0,0.65)}.description-edit-button:active{background:rgba(0,0,0,0.1)}.description-edit-button:focus{outline:none}.description-content{font-size:14px;font-weight:400;line-height:22.75px;color:rgba(0,0,0,0.45);margin:0}",""]);const c=a.toString()},36758:e=>{e.exports=function(e){return e[1]}},39524:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(36758),o=n.n(i),r=n(40935),a=n.n(r),c=n(20062),s=n.n(c),l=new URL(n(32360),n.b),p=a()(o()),d=s()(l);p.push([e.id,`:host{display:block;width:100%}:host([hidden]){display:none}:host::before{content:"";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${d});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.space-workbench-container{display:flex;flex-direction:column;height:100%}`,""]);const u=p.toString()},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var p=[].concat(e[l]);i&&a[p[0]]||(void 0!==r&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=r),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},49325:(e,t,n)=>{n.d(t,{I:()=>a,K:()=>o,NS:()=>r,t:()=>c});var i=n(67177);let o=function(e){return e.DESCRIPTION="DESCRIPTION",e.SPACE_GUIDE_SECTION_TITLE="SPACE_GUIDE_SECTION_TITLE",e.SPACE_GUIDE_CARD_1_TITLE="SPACE_GUIDE_CARD_1_TITLE",e.SPACE_GUIDE_CARD_2_TITLE="SPACE_GUIDE_CARD_2_TITLE",e.SPACE_GUIDE_CARD_3_TITLE="SPACE_GUIDE_CARD_3_TITLE",e}({});const r="bricks/ai-portal/space-workbench",a={en:{DESCRIPTION:"Description",SPACE_GUIDE_SECTION_TITLE:"I can help you with:",SPACE_GUIDE_CARD_1_TITLE:"Manage Business Cases",SPACE_GUIDE_CARD_2_TITLE:"Initiate Business Flow",SPACE_GUIDE_CARD_3_TITLE:"Manage Space Knowledge"},zh:{DESCRIPTION:"描述",SPACE_GUIDE_SECTION_TITLE:"我可以协助您完成:",SPACE_GUIDE_CARD_1_TITLE:"管理业务案例",SPACE_GUIDE_CARD_2_TITLE:"发起业务流",SPACE_GUIDE_CARD_3_TITLE:"管理空间知识"}},c=i.i18n.getFixedT(null,r)},62740:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(17545),o=n(26902);function r(e,t,n){"symbol"==(0,i.A)(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}var a=n(11369);function c(e,t,n,c,s,l){var p,d,u,h,g,f,m,b=Symbol.metadata||Symbol.for("Symbol.metadata"),x=Object.defineProperty,E=Object.create,A=[E(null),E(null)],v=t.length;function k(t,n,i){return function(o,r){n&&(r=o,o=e);for(var a=0;a<t.length;a++)r=t[a].apply(o,i?[r]:[]);return i?r:o}}function w(e,t,n,i){if("function"!=typeof e&&(i||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(i?"":" or undefined"));return e}function y(e,t,n,o,a,c,s,l,u,h,g){function f(e){if(!g(e))throw new TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),b=t[3],E=!s,v=1===a,y=3===a,_=4===a,C=2===a;function I(t,n,i){return function(o,r){return n&&(r=o,o=e),i&&i(o),T[t].call(o,r)}}if(!E){var T={},S=[],D=y?"get":_||v?"set":"value";if(u?(h||v?T={get:r((function(){return b(this)}),o,"get"),set:function(e){t[4](this,e)}}:T[D]=b,h||r(T[D],o,C?"":D)):h||(T=Object.getOwnPropertyDescriptor(e,o)),!h&&!u){if((d=A[+l][o])&&7!=(d^a))throw Error("Decorating two elements with the same name ("+T[D].name+") is not supported yet");A[+l][o]=a<3?1:a}}for(var N=e,P=m.length-1;P>=0;P-=n?2:1){var R=w(m[P],"A decorator","be",!0),U=n?m[P-1]:void 0,z={},M={kind:["field","accessor","method","getter","setter","class"][a],name:o,metadata:p,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");w(t,"An initializer","be",!0),c.push(t)}.bind(null,z)};if(E)d=R.call(U,N,M),z.v=1,w(d,"class decorators","return")&&(N=d);else if(M.static=l,M.private=u,d=M.access={has:u?g.bind():function(e){return o in e}},_||(d.get=u?C?function(e){return f(e),T.value}:I("get",0,f):function(e){return e[o]}),C||y||(d.set=u?I("set",0,f):function(e,t){e[o]=t}),N=R.call(U,v?{get:T.get,set:T.set}:T[D],M),z.v=1,v){if("object"==(0,i.A)(N)&&N)(d=w(N.get,"accessor.get"))&&(T.get=d),(d=w(N.set,"accessor.set"))&&(T.set=d),(d=w(N.init,"accessor.init"))&&S.unshift(d);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else w(N,(h?"field":"method")+" decorators","return")&&(h?S.unshift(N):T[D]=N)}return a<2&&s.push(k(S,l,1),k(c,l,0)),h||E||(u?v?s.splice(-1,0,I("get",l),I("set",l)):s.push(C?T[D]:w.call.bind(T[D])):x(e,o,T)),N}function _(e){return x(e,b,{configurable:!0,enumerable:!0,value:p})}return void 0!==l&&(p=l[b]),p=E(null==p?null:p),g=[],f=function(e){e&&g.push(k(e))},m=function(t,i){for(var r=0;r<n.length;r++){var c=n[r],l=c[1],p=7&l;if((8&l)==t&&!p==i){var d=c[2],f=!!c[3],m=16&l;y(t?e:e.prototype,c,m,f?"#"+d:(0,a.A)(d),p,p<2?[]:t?h=h||[]:u=u||[],g,!!t,f,i,t&&f?function(t){return(0,o.A)(t)===e}:s)}}},m(8,0),m(0,0),m(8,1),m(0,1),f(u),f(h),d=g,v||_(e),{e:d,get c(){var n=[];return v&&[_(e=y(e,[t],c,e.name,5,n)),k(n,1)]}}}},70829:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(12559);function o(e,t){return e.get((0,i.A)(e,t))}},70918:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(72016);function o(e,t,n){(0,i.A)(e,t),t.set(e,n)}},72016:(e,t,n)=>{function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>i})},74635:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(72016);function o(e,t){(0,i.A)(e,t),t.add(e)}},86121:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(12559);function o(e,t,n){return e.set((0,i.A)(e,t),n),n}},90955:(e,t,n)=>{n.d(t,{c:()=>p});var i=n(18769),o=n.n(i),r=n(30981),a=n(49325);const c=(0,r.wrapBrick)("eo-icon"),s=(0,r.wrapBrick)("ai-portal.notice-dropdown",{onNoticeClick:"notice.click",onMarkAllRead:"mark.all.read"}),l=(0,r.wrapBrick)("ai-portal.space-logo");function p(e){const{spaceName:t,notices:n=[],notifyCenterUrl:i,onBack:r,onMembersClick:p,onMarkAllRead:d,onNoticeClick:u,description:h,onSpaceEdit:g}=e,[f,m]=o().useState(!1);return o().createElement(o().Fragment,null,o().createElement("header",{className:"space-workbench-header"},o().createElement("div",{className:"header-left"},o().createElement("button",{className:"icon-button",onClick:r},o().createElement(c,{lib:"antd",icon:"arrow-left",theme:"outlined"})),o().createElement(l,{size:32}),o().createElement("h1",{className:"space-title"},t),o().createElement("div",{className:"action-icons"},o().createElement("button",{className:"icon-button"},o().createElement(c,{lib:"antd",icon:"setting",theme:"outlined"})),o().createElement("button",{className:"icon-button "+(f?"active":""),onClick:()=>{m(!f)}},o().createElement(c,{lib:"antd",icon:"question-circle",theme:"outlined"})))),o().createElement("div",{className:"header-right"},o().createElement(c,{className:"icon-button",lib:"antd",icon:"usergroup-add",onClick:p}),o().createElement("div",{className:"divider"}),o().createElement(s,{dataSource:n,dropdownContentStyle:{minWidth:"300px"},hideNotifyCenterButton:!0,urlTarget:"_blank",notifyCenterUrl:i,onMarkAllRead:()=>d(),onNoticeClick:e=>u(e.detail)}))),f&&h&&o().createElement("div",{className:"space-description"},o().createElement("div",{className:"description-header"},o().createElement("p",{className:"description-title"},(0,a.t)(a.K.DESCRIPTION)),o().createElement("button",{className:"description-edit-button",onClick:g},o().createElement(c,{lib:"antd",icon:"edit",theme:"outlined"}))),o().createElement("p",{className:"description-content"},h)))}},92580:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(36758),o=n.n(i),r=n(40935),a=n.n(r)()(o());a.push([e.id,".space-guide-container{display:flex;flex-direction:column;align-items:center;margin:0 auto}.guide-header{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:60px}.space-logo{margin-bottom:24px}.guide-title{font-size:24px;font-weight:600;line-height:32px;color:rgba(0,0,0,0.88);margin:0 0 16px 0}.guide-description{font-size:16px;line-height:26px;color:rgba(0,0,0,0.65);margin:0;max-width:600px}.guide-content{width:100%}.section-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:20px;color:#0f172b;margin-bottom:24px}.section-icon{width:16px;height:16px}.cards-grid{display:grid;grid-template-columns:repeat(3,220px);gap:16px}.guide-card{height:110px;border-radius:12px;padding:24px;overflow:hidden;cursor:pointer;transition:transform 0.2s ease,box-shadow 0.2s ease;border:1px solid rgba(0,0,0,0.1);background-size:cover;background-repeat:no-repeat;background-position:center}.guide-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.08)}.card-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column}.card-icon{width:32px;height:32px;margin-bottom:16px}.card-title{font-size:14px;font-weight:500;line-height:20px;color:rgba(0,0,0,0.88);margin:0 0 8px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-description{font-size:12px;line-height:18px;color:rgba(0,0,0,0.45);margin:0;flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}",""]);const c=a.toString()},99991:(e,t,n)=>{n.r(t),n.d(t,{SpaceWorkbench:()=>V});var i,o=n(74635),r=n(70918),a=n(26902),c=n(5536),s=n(86121),l=n(70829),p=n(62740),d=n(18769),u=n.n(d),h=n(90870),g=n(30981),f=(n(34419),n(67177)),m=n(49325),b=n(33950),x=n(92580),E=n(39524),A=n(90955);let v,k,w,y,_,C,I,T,S,D,N,P,R,U,z,M,j,L,G,O,B,W,F,K,Y,$,q;(0,f.initializeI18n)(m.NS,m.I);const{defineElement:Q,property:H,event:J}=(0,h.createDecorators)();let V;var X=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakSet,ie=new WeakMap,oe=new WeakMap,re=new WeakMap,ae=new WeakMap;class ce extends g.ReactNextElement{constructor(){super(...arguments),(0,o.A)(this,ne),(0,r.A)(this,X,k(this)),(0,r.A)(this,Z,(w(this),y(this))),(0,r.A)(this,ee,(_(this),C(this))),(0,r.A)(this,te,(I(this),T(this))),(0,r.A)(this,ie,(N(this),P(this))),(0,r.A)(this,oe,(z(this),M(this))),(0,r.A)(this,re,(G(this),O(this))),(0,r.A)(this,ae,(F(this),K(this))),q(this)}get notices(){return(0,l.A)(X,this)}set notices(e){(0,s.A)(X,this,e)}get spaceDetail(){return(0,l.A)(Z,this)}set spaceDetail(e){(0,s.A)(Z,this,e)}get notifyCenterUrl(){return(0,l.A)(ee,this)}set notifyCenterUrl(e){(0,s.A)(ee,this,e)}render(){return u().createElement(se,{spaceDetail:this.spaceDetail,notices:this.notices,notifyCenterUrl:this.notifyCenterUrl,onBack:()=>(0,c.A)(ne,this,S).emit(),onMembersClick:()=>(0,c.A)(ne,this,R).emit(),onNoticeClick:e=>(0,c.A)(ne,this,j).emit(e),onMarkAllRead:()=>(0,c.A)(ne,this,B).emit(),onSpaceEdit:()=>(0,c.A)(ne,this,Y).emit()})}}function se(e){const{spaceDetail:t,notices:n=[],notifyCenterUrl:i,onBack:o,onMembersClick:r,onMarkAllRead:a,onNoticeClick:c,onSpaceEdit:s}=e;return u().createElement("div",{className:"space-workbench-container"},u().createElement(A.c,{spaceName:t.name,description:t.description,notifyCenterUrl:i,notices:n,onBack:o,onMembersClick:r,onMarkAllRead:a,onNoticeClick:c,onSpaceEdit:s}))}i=ce,({e:[k,w,y,_,C,I,T,S,D,N,P,R,U,z,M,j,L,G,O,B,W,F,K,Y,$,q],c:[V,v]}=(0,p.A)(i,[Q("ai-portal.space-workbench",{styleTexts:[b.A,x.A,E.A]})],[[H({attribute:!1}),1,"notices"],[H({attribute:!1}),1,"spaceDetail"],[H(),1,"notifyCenterUrl"],[J({type:"go.back"}),1,"_goBackEvent",e=>(0,l.A)(te,e),(e,t)=>(0,s.A)(te,e,t)],[J({type:"members.click"}),1,"_membersClickEvent",e=>(0,l.A)(ie,e),(e,t)=>(0,s.A)(ie,e,t)],[J({type:"notice.click"}),1,"_noticeClickEvent",e=>(0,l.A)(oe,e),(e,t)=>(0,s.A)(oe,e,t)],[J({type:"mark.all.read"}),1,"_markAllReadEvent",e=>(0,l.A)(re,e),(e,t)=>(0,s.A)(re,e,t)],[J({type:"space.edit"}),1,"_spaceEditEvent",e=>(0,l.A)(ae,e),(e,t)=>(0,s.A)(ae,e,t)]],0,(e=>ne.has((0,a.A)(e))),g.ReactNextElement)),v()}}]);
|
|
2
|
+
//# sourceMappingURL=space-workbench.964b8644.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/space-workbench.964b8644.js","mappings":"iLACe,SAASA,EAAoBC,EAAGC,EAAGC,GAChD,OAAOA,GAAE,OAAiBF,EAAGC,GAC/B,C,kDCDe,SAASE,EAAcC,GACpC,IAAIC,ECFS,SAAqBD,GAClC,GAAI,WAAY,OAAQA,KAAOA,EAAG,OAAOA,EACzC,IAAIE,EAAIF,EAAEG,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAID,EAAIC,EAAEG,KAAKL,EAAGH,UAClB,GAAI,WAAY,OAAQI,GAAI,OAAOA,EACnC,MAAM,IAAIK,UAAU,+CACtB,CACA,OAAyBC,OAAiBP,EAC5C,CDPUI,CAAYJ,GACpB,MAAO,WAAY,OAAQC,GAAKA,EAAIA,EAAI,EAC1C,C,kBELe,SAASO,EAAkBN,EAAGF,EAAGS,GAC9C,GAAI,mBAAqBP,EAAIA,IAAMF,EAAIE,EAAEQ,IAAIV,GAAI,OAAOW,UAAUC,OAAS,EAAIZ,EAAIS,EACnF,MAAM,IAAIH,UAAU,gDACtB,C,kCCHe,SAASO,EAAQC,GAG9B,OAAOD,EAAU,mBAAqBV,QAAU,iBAAmBA,OAAOY,SAAW,SAAUD,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBX,QA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AAqI,GAAAlD,GAAA9J,KAAAoB,EAAAA,EAAAA,GAAA4L,KAtBH3C,EAAAA,mBAAgBmC,G","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/assertClassBrand.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/css-loader/dist/runtime/getUrl.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkInRHS.js","webpack:///./src/space-workbench/components/SpaceNav/SpaceNav.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack:///./src/space-workbench/styles.shadow.css","webpack:///../../node_modules/css-loader/dist/runtime/api.js","webpack:///./src/space-workbench/i18n.ts","webpack:///../../node_modules/@babel/runtime/helpers/esm/setFunctionName.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/applyDecs2311.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js","webpack:///./src/space-workbench/components/SpaceNav/SpaceNav.tsx","webpack:///./src/space-workbench/components/SpaceGuide/SpaceGuide.shadow.css","webpack:///./src/space-workbench/index.tsx"],"sourcesContent":["import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateGetter(s, r, a) {\n return a(assertClassBrand(s, r));\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}","import _typeof from \"./typeof.js\";\nexport default function toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}","export default function _assertClassBrand(e, t, n) {\n if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;\n throw new TypeError(\"Private element is not present on this object\");\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","\"use strict\";\n\nmodule.exports = function (url, options) {\n if (!options) {\n options = {};\n }\n if (!url) {\n return url;\n }\n url = String(url.__esModule ? url.default : url);\n\n // If url is already wrapped in quotes, remove them\n if (/^['\"].*['\"]$/.test(url)) {\n url = url.slice(1, -1);\n }\n if (options.hash) {\n url += options.hash;\n }\n\n // Should url be wrapped?\n // See https://drafts.csswg.org/css-values-3/#urls\n if (/[\"'() \\t\\n]|(%20)/.test(url) || options.needQuotes) {\n return \"\\\"\".concat(url.replace(/\"/g, '\\\\\"').replace(/\\n/g, \"\\\\n\"), \"\\\"\");\n }\n return url;\n};","import _typeof from \"./typeof.js\";\nexport default function _checkInRHS(e) {\n if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? _typeof(e) : \"null\"));\n return e;\n}","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.space-workbench-header{display:flex;align-items:center;justify-content:space-between;padding:12px 24px}.header-left{display:flex;align-items:center;gap:12px;flex:1}.space-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#2540ff;box-shadow:0px 4px 4px 0px rgba(37,64,255,0.1);overflow:hidden;flex-shrink:0}.space-icon img{width:28px;height:28px;object-fit:cover}.space-title{margin:0;font-size:18px;font-weight:600;color:rgba(0,0,0,0.85);line-height:28px}.action-icons{display:flex;align-items:center;gap:4px;margin-left:16px}.header-right{display:flex;align-items:center;gap:16px;position:relative}.divider{width:1px;height:20px;background-color:rgba(0,0,0,0.15)}.icon-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:8px;background:none;cursor:pointer;color:inherit;flex-shrink:0;transition:background-color 0.2s ease}.icon-button eo-icon{font-size:16px;color:rgba(0,0,0,0.65);transition:color 0.2s ease}.icon-button:hover{background:rgba(0,0,0,0.04)}.icon-button:active{background:rgba(0,0,0,0.08)}.icon-button:focus{outline:none}.icon-button.active{background:rgba(0,0,0,0.06)}.space-description{padding:18px 20px;background-color:rgba(184,187,205,0.2);border-radius:12px;margin:4px 24px;display:flex;flex-direction:column;gap:11px;overflow:hidden;animation:slideDown 0.3s ease-out;transform-origin:top;position:relative}@keyframes slideDown{from{opacity:0;transform:translateY(-10px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}to{opacity:1;transform:translateY(0);max-height:500px;margin-top:4px;margin-bottom:12px;padding-top:18px;padding-bottom:18px}}.description-header{display:flex;align-items:center;justify-content:space-between}.description-title{font-size:14px;font-weight:500;line-height:15px;color:rgba(0,0,0,0.85);text-transform:uppercase;letter-spacing:0.6172px;margin:0}.description-edit-button{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:none;cursor:pointer;color:rgba(0,0,0,0.45);transition:all 0.2s ease;flex-shrink:0}.description-edit-button eo-icon{font-size:14px;color:rgba(0,0,0,0.45);transition:color 0.2s ease}.description-edit-button:hover{background:rgba(0,0,0,0.06)}.description-edit-button:hover eo-icon{color:rgba(0,0,0,0.65)}.description-edit-button:active{background:rgba(0,0,0,0.1)}.description-edit-button:focus{outline:none}.description-content{font-size:14px;font-weight:400;line-height:22.75px;color:rgba(0,0,0,0.45);margin:0}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"../home-container/images/background.png\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block;width:100%}:host([hidden]){display:none}:host::before{content:\"\";position:fixed;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:#f1f1f1;background-image:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.space-workbench-container{display:flex;flex-direction:column;height:100%}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","import { i18n } from \"@next-core/i18n\";\n\nexport enum K {\n DESCRIPTION = \"DESCRIPTION\",\n SPACE_GUIDE_SECTION_TITLE = \"SPACE_GUIDE_SECTION_TITLE\",\n SPACE_GUIDE_CARD_1_TITLE = \"SPACE_GUIDE_CARD_1_TITLE\",\n SPACE_GUIDE_CARD_2_TITLE = \"SPACE_GUIDE_CARD_2_TITLE\",\n SPACE_GUIDE_CARD_3_TITLE = \"SPACE_GUIDE_CARD_3_TITLE\",\n}\n\nconst en: Locale = {\n DESCRIPTION: \"Description\",\n SPACE_GUIDE_SECTION_TITLE: \"I can help you with:\",\n SPACE_GUIDE_CARD_1_TITLE: \"Manage Business Cases\",\n SPACE_GUIDE_CARD_2_TITLE: \"Initiate Business Flow\",\n SPACE_GUIDE_CARD_3_TITLE: \"Manage Space Knowledge\",\n};\n\nconst zh: Locale = {\n DESCRIPTION: \"描述\",\n SPACE_GUIDE_SECTION_TITLE: \"我可以协助您完成:\",\n SPACE_GUIDE_CARD_1_TITLE: \"管理业务案例\",\n SPACE_GUIDE_CARD_2_TITLE: \"发起业务流\",\n SPACE_GUIDE_CARD_3_TITLE: \"管理空间知识\",\n};\n\nexport const NS = \"bricks/ai-portal/space-workbench\";\n\nexport const locales = { en, zh };\n\nexport const t = i18n.getFixedT(null, NS);\n\ntype Locale = { [k in K]: string } & {\n [k in K as `${k}_plural`]?: string;\n};\n","import _typeof from \"./typeof.js\";\nexport default function setFunctionName(e, t, n) {\n \"symbol\" == _typeof(t) && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\");\n try {\n Object.defineProperty(e, \"name\", {\n configurable: !0,\n value: n ? n + \" \" + t : t\n });\n } catch (e) {}\n return e;\n}","import _typeof from \"./typeof.js\";\nimport checkInRHS from \"./checkInRHS.js\";\nimport setFunctionName from \"./setFunctionName.js\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function applyDecs2311(e, t, n, r, o, i) {\n var a,\n c,\n u,\n s,\n f,\n l,\n p,\n d = Symbol.metadata || Symbol[\"for\"](\"Symbol.metadata\"),\n m = Object.defineProperty,\n h = Object.create,\n y = [h(null), h(null)],\n v = t.length;\n function g(t, n, r) {\n return function (o, i) {\n n && (i = o, o = e);\n for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []);\n return r ? i : o;\n };\n }\n function b(e, t, n, r) {\n if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\"));\n return e;\n }\n function applyDec(e, t, n, r, o, i, u, s, f, l, p) {\n function d(e) {\n if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\");\n }\n var h = [].concat(t[0]),\n v = t[3],\n w = !u,\n D = 1 === o,\n S = 3 === o,\n j = 4 === o,\n E = 2 === o;\n function I(t, n, r) {\n return function (o, i) {\n return n && (i = o, o = e), r && r(o), P[t].call(o, i);\n };\n }\n if (!w) {\n var P = {},\n k = [],\n F = S ? \"get\" : j || D ? \"set\" : \"value\";\n if (f ? (l || D ? P = {\n get: setFunctionName(function () {\n return v(this);\n }, r, \"get\"),\n set: function set(e) {\n t[4](this, e);\n }\n } : P[F] = v, l || setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) {\n if ((c = y[+s][r]) && 7 != (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\");\n y[+s][r] = o < 3 ? 1 : o;\n }\n }\n for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) {\n var z = b(h[O], \"A decorator\", \"be\", !0),\n A = n ? h[O - 1] : void 0,\n H = {},\n K = {\n kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o],\n name: r,\n metadata: a,\n addInitializer: function (e, t) {\n if (e.v) throw Error(\"attempted to call addInitializer after decoration was finished\");\n b(t, \"An initializer\", \"be\", !0), i.push(t);\n }.bind(null, H)\n };\n if (w) c = z.call(A, N, K), H.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (K[\"static\"] = s, K[\"private\"] = f, c = K.access = {\n has: f ? p.bind() : function (e) {\n return r in e;\n }\n }, j || (c.get = f ? E ? function (e) {\n return d(e), P.value;\n } : I(\"get\", 0, d) : function (e) {\n return e[r];\n }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) {\n e[r] = t;\n }), N = z.call(A, D ? {\n get: P.get,\n set: P.set\n } : P[F], K), H.v = 1, D) {\n if (\"object\" == _typeof(N) && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\");\n } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N);\n }\n return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N;\n }\n function w(e) {\n return m(e, d, {\n configurable: !0,\n enumerable: !0,\n value: a\n });\n }\n return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) {\n e && f.push(g(e));\n }, p = function p(t, r) {\n for (var i = 0; i < n.length; i++) {\n var a = n[i],\n c = a[1],\n l = 7 & c;\n if ((8 & c) == t && !l == r) {\n var p = a[2],\n d = !!a[3],\n m = 16 & c;\n applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) {\n return checkInRHS(t) === e;\n } : o);\n }\n }\n }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), {\n e: c,\n get c() {\n var n = [];\n return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)];\n }\n };\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldGet2(s, a) {\n return s.get(assertClassBrand(s, a));\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateFieldInitSpec(obj, privateMap, value) {\n checkPrivateRedeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}","export default function _checkPrivateRedeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import assertClassBrand from \"./assertClassBrand.js\";\nexport default function _classPrivateFieldSet2(s, a, r) {\n return s.set(assertClassBrand(s, a), r), r;\n}","import React from \"react\";\nimport { wrapBrick } from \"@next-core/react-element\";\nimport type {\n GeneralIcon,\n GeneralIconProps,\n} from \"@next-bricks/icons/general-icon\";\nimport {\n NoticeDropdown,\n NoticeDropdownProps,\n NoticeItem,\n} from \"../../../notice-dropdown/index.jsx\";\nimport type { SpaceLogo, SpaceLogoProps } from \"../../space-logo/index.jsx\";\nimport { K, t } from \"../../i18n.js\";\n\nconst WrappedIcon = wrapBrick<GeneralIcon, GeneralIconProps>(\"eo-icon\");\nexport interface NoticeDropdownEvents {\n \"notice.click\": CustomEvent<NoticeItem>;\n \"mark.all.read\": CustomEvent<void>;\n}\n\nexport interface NoticeDropdownMapping {\n onNoticeClick: \"notice.click\";\n onMarkAllRead: \"mark.all.read\";\n}\n\nconst WrappedNoticeDropdown = wrapBrick<\n NoticeDropdown,\n NoticeDropdownProps,\n NoticeDropdownEvents,\n NoticeDropdownMapping\n>(\"ai-portal.notice-dropdown\", {\n onNoticeClick: \"notice.click\",\n onMarkAllRead: \"mark.all.read\",\n});\nconst WrappedSpaceLogo = wrapBrick<SpaceLogo, SpaceLogoProps>(\n \"ai-portal.space-logo\"\n);\n\nexport interface SpaceNavProps {\n spaceName: string;\n notices?: NoticeItem[];\n onBack: () => void;\n onMembersClick: () => void;\n notifyCenterUrl: string;\n onMarkAllRead: () => void;\n onNoticeClick: (notice: NoticeItem) => void;\n description?: string;\n onSpaceEdit?: () => void;\n}\n\nexport function SpaceNav(props: SpaceNavProps) {\n const {\n spaceName,\n notices = [],\n notifyCenterUrl,\n onBack,\n onMembersClick,\n onMarkAllRead,\n onNoticeClick,\n description,\n onSpaceEdit,\n } = props;\n\n const [showDescription, setShowDescription] = React.useState(false);\n\n const handleQuestionClick = () => {\n setShowDescription(!showDescription);\n };\n\n return (\n <>\n <header className=\"space-workbench-header\">\n <div className=\"header-left\">\n <button className=\"icon-button\" onClick={onBack}>\n <WrappedIcon lib=\"antd\" icon=\"arrow-left\" theme=\"outlined\" />\n </button>\n\n <WrappedSpaceLogo size={32} />\n\n <h1 className=\"space-title\">{spaceName}</h1>\n\n <div className=\"action-icons\">\n <button className=\"icon-button\">\n <WrappedIcon lib=\"antd\" icon=\"setting\" theme=\"outlined\" />\n </button>\n <button\n className={`icon-button ${showDescription ? \"active\" : \"\"}`}\n onClick={handleQuestionClick}\n >\n <WrappedIcon lib=\"antd\" icon=\"question-circle\" theme=\"outlined\" />\n </button>\n </div>\n </div>\n\n <div className=\"header-right\">\n <WrappedIcon\n className=\"icon-button\"\n lib=\"antd\"\n icon=\"usergroup-add\"\n onClick={onMembersClick}\n ></WrappedIcon>\n\n <div className=\"divider\" />\n\n <WrappedNoticeDropdown\n dataSource={notices}\n dropdownContentStyle={{ minWidth: \"300px\" }}\n hideNotifyCenterButton\n urlTarget=\"_blank\"\n notifyCenterUrl={notifyCenterUrl}\n onMarkAllRead={() => onMarkAllRead()}\n onNoticeClick={(e) => onNoticeClick(e.detail)}\n />\n </div>\n </header>\n\n {showDescription && description && (\n <div className=\"space-description\">\n <div className=\"description-header\">\n <p className=\"description-title\">{t(K.DESCRIPTION)}</p>\n <button className=\"description-edit-button\" onClick={onSpaceEdit}>\n <WrappedIcon lib=\"antd\" icon=\"edit\" theme=\"outlined\" />\n </button>\n </div>\n <p className=\"description-content\">{description}</p>\n </div>\n )}\n </>\n );\n}\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.space-guide-container{display:flex;flex-direction:column;align-items:center;margin:0 auto}.guide-header{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:60px}.space-logo{margin-bottom:24px}.guide-title{font-size:24px;font-weight:600;line-height:32px;color:rgba(0,0,0,0.88);margin:0 0 16px 0}.guide-description{font-size:16px;line-height:26px;color:rgba(0,0,0,0.65);margin:0;max-width:600px}.guide-content{width:100%}.section-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:20px;color:#0f172b;margin-bottom:24px}.section-icon{width:16px;height:16px}.cards-grid{display:grid;grid-template-columns:repeat(3,220px);gap:16px}.guide-card{height:110px;border-radius:12px;padding:24px;overflow:hidden;cursor:pointer;transition:transform 0.2s ease,box-shadow 0.2s ease;border:1px solid rgba(0,0,0,0.1);background-size:cover;background-repeat:no-repeat;background-position:center}.guide-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.08)}.card-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column}.card-icon{width:32px;height:32px;margin-bottom:16px}.card-title{font-size:14px;font-weight:500;line-height:20px;color:rgba(0,0,0,0.88);margin:0 0 8px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-description{font-size:12px;line-height:18px;color:rgba(0,0,0,0.45);margin:0;flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___.toString();\n","// istanbul ignore file\nimport React from \"react\";\nimport { createDecorators, EventEmitter } from \"@next-core/element\";\nimport { ReactNextElement } from \"@next-core/react-element\";\nimport \"@next-core/theme\";\nimport { initializeI18n } from \"@next-core/i18n\";\nimport { NS, locales } from \"./i18n.js\";\nimport SpaceNavStyle from \"./components/SpaceNav/SpaceNav.shadow.css\";\nimport SpaceGuideStyle from \"./components/SpaceGuide/SpaceGuide.shadow.css\";\nimport styleText from \"./styles.shadow.css\";\nimport type { NoticeItem } from \"../notice-dropdown/index.js\";\nimport { SpaceDetail } from \"./interfaces.js\";\nimport { SpaceNav } from \"./components/SpaceNav/SpaceNav\";\n\ninitializeI18n(NS, locales);\n\nconst { defineElement, property, event } = createDecorators();\n\nexport interface SpaceWorkbenchProps {\n notifyCenterUrl: string;\n spaceDetail: SpaceDetail;\n notices?: NoticeItem[];\n}\n\n/**\n * 构件 `ai-portal.space-workbench`\n */\nexport\n@defineElement(\"ai-portal.space-workbench\", {\n styleTexts: [SpaceNavStyle, SpaceGuideStyle, styleText],\n})\nclass SpaceWorkbench extends ReactNextElement implements SpaceWorkbenchProps {\n @property({ attribute: false })\n accessor notices: NoticeItem[] | undefined;\n\n @property({ attribute: false })\n accessor spaceDetail!: SpaceDetail;\n\n @property()\n accessor notifyCenterUrl!: string;\n\n @event({ type: \"go.back\" })\n accessor #_goBackEvent!: EventEmitter<void>;\n\n @event({ type: \"members.click\" })\n accessor #_membersClickEvent!: EventEmitter<void>;\n\n @event({ type: \"notice.click\" })\n accessor #_noticeClickEvent!: EventEmitter<NoticeItem>;\n\n @event({ type: \"mark.all.read\" })\n accessor #_markAllReadEvent!: EventEmitter<void>;\n\n @event({ type: \"space.edit\" })\n accessor #_spaceEditEvent!: EventEmitter<void>;\n\n render() {\n return (\n <SpaceWorkbenchComponent\n spaceDetail={this.spaceDetail}\n notices={this.notices}\n notifyCenterUrl={this.notifyCenterUrl}\n onBack={() => this.#_goBackEvent.emit()}\n onMembersClick={() => this.#_membersClickEvent.emit()}\n onNoticeClick={(notice) => this.#_noticeClickEvent.emit(notice)}\n onMarkAllRead={() => this.#_markAllReadEvent.emit()}\n onSpaceEdit={() => this.#_spaceEditEvent.emit()}\n />\n );\n }\n}\n\ninterface SpaceWorkbenchComponentProps extends SpaceWorkbenchProps {\n onBack: () => void;\n onMembersClick: () => void;\n onMarkAllRead: () => void;\n onNoticeClick: (notice: NoticeItem) => void;\n onSpaceEdit: () => void;\n}\n\nfunction SpaceWorkbenchComponent(props: SpaceWorkbenchComponentProps) {\n const {\n spaceDetail,\n notices = [],\n notifyCenterUrl,\n onBack,\n onMembersClick,\n onMarkAllRead,\n onNoticeClick,\n onSpaceEdit,\n } = props;\n\n return (\n <div className=\"space-workbench-container\">\n <SpaceNav\n spaceName={spaceDetail.name}\n description={spaceDetail.description}\n notifyCenterUrl={notifyCenterUrl}\n notices={notices}\n onBack={onBack}\n onMembersClick={onMembersClick}\n onMarkAllRead={onMarkAllRead}\n onNoticeClick={onNoticeClick}\n onSpaceEdit={onSpaceEdit}\n />\n </div>\n );\n}\n"],"names":["_classPrivateGetter","s","r","a","toPropertyKey","t","i","e","Symbol","toPrimitive","call","TypeError","String","_assertClassBrand","n","has","arguments","length","_typeof","o","iterator","constructor","prototype","module","exports","url","options","__esModule","default","test","slice","hash","needQuotes","concat","replace","_checkInRHS","Object","___CSS_LOADER_EXPORT___","push","id","toString","___CSS_LOADER_URL_IMPORT_0___","URL","___CSS_LOADER_URL_REPLACEMENT_0___","cssWithMappingToString","list","this","map","item","content","needLayer","join","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","K","NS","locales","en","DESCRIPTION","SPACE_GUIDE_SECTION_TITLE","SPACE_GUIDE_CARD_1_TITLE","SPACE_GUIDE_CARD_2_TITLE","SPACE_GUIDE_CARD_3_TITLE","zh","i18n","getFixedT","setFunctionName","description","defineProperty","configurable","value","applyDecs2311","c","u","f","l","p","d","metadata","m","h","create","y","v","g","apply","b","applyDec","w","D","S","j","E","I","P","F","get","set","getOwnPropertyDescriptor","Error","name","N","O","z","A","H","kind","addInitializer","bind","access","init","unshift","splice","enumerable","checkInRHS","_classPrivateFieldGet2","_classPrivateFieldInitSpec","obj","privateMap","_checkPrivateRedeclaration","privateCollection","_classPrivateMethodInitSpec","privateSet","add","_classPrivateFieldSet2","WrappedIcon","wrapBrick","WrappedNoticeDropdown","onNoticeClick","onMarkAllRead","WrappedSpaceLogo","SpaceNav","props","spaceName","notices","notifyCenterUrl","onBack","onMembersClick","onSpaceEdit","showDescription","setShowDescription","React","className","onClick","lib","icon","theme","size","handleQuestionClick","dataSource","dropdownContentStyle","minWidth","hideNotifyCenterButton","urlTarget","detail","initializeI18n","defineElement","property","event","createDecorators","_SpaceWorkbench","_A","WeakMap","_B","_C","_D","_SpaceWorkbench_brand","WeakSet","_E","_F","_G","_H","SpaceWorkbench","ReactNextElement","_init_notices","_init_extra_notices","_init_spaceDetail","_init_extra_spaceDetail","_init_notifyCenterUrl","_init_extra_notifyCenterUrl","_init__goBackEvent","_init_extra__goBackEvent","_init__membersClickEvent","_init_extra__membersClickEvent","_init__noticeClickEvent","_init_extra__noticeClickEvent","_init__markAllReadEvent","_init_extra__markAllReadEvent","_init__spaceEditEvent","_init_extra__spaceEditEvent","_classPrivateFieldGet","_classPrivateFieldSet","spaceDetail","render","SpaceWorkbenchComponent","_get__goBackEvent","emit","_get__membersClickEvent","notice","_get__noticeClickEvent","_get__markAllReadEvent","_get__spaceEditEvent","_SpaceWorkbench2","_set__goBackEvent","_set__membersClickEvent","_set__noticeClickEvent","_set__markAllReadEvent","_set__spaceEditEvent","_initClass","_applyDecs","styleTexts","SpaceNavStyle","SpaceGuideStyle","styleText","attribute","type","_"],"sourceRoot":""}
|
package/dist/examples.json
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ai-portal.
|
|
3
|
-
"doc": "构件 `ai-portal.home-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>Hello world</ai-portal.home-container>\n# \n```\n"
|
|
4
|
-
},
|
|
5
|
-
"ai-portal.icon-button": {
|
|
6
|
-
"doc": "构件 `ai-portal.icon-button`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.icon-button\nproperties:\n icon:\n lib: antd\n icon: download\n tooltip: Go to homepage\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.icon-button\n# tooltip=\"Go to homepage\"\n# id=\"brick-1\"\n# ></ai-portal.icon-button>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.icon = {\n# lib: \"antd\",\n# icon: \"download\",\n# };\n# </script>\n# \n```\n"
|
|
2
|
+
"ai-portal.stat-with-mini-chart": {
|
|
3
|
+
"doc": "构件 `ai-portal.stat-with-mini-chart`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n\n### Size\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n size: small\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# size=\"small\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n"
|
|
7
4
|
},
|
|
8
5
|
"ai-portal.elevo-sidebar": {
|
|
9
6
|
"doc": "构件 `ai-portal.elevo-sidebar`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.elevo-sidebar\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.elevo-sidebar></ai-portal.elevo-sidebar>\n# \n```\n"
|
|
10
7
|
},
|
|
8
|
+
"ai-portal.icon-button": {
|
|
9
|
+
"doc": "构件 `ai-portal.icon-button`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.icon-button\nproperties:\n icon:\n lib: antd\n icon: download\n tooltip: Go to homepage\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.icon-button\n# tooltip=\"Go to homepage\"\n# id=\"brick-1\"\n# ></ai-portal.icon-button>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.icon = {\n# lib: \"antd\",\n# icon: \"download\",\n# };\n# </script>\n# \n```\n"
|
|
10
|
+
},
|
|
11
11
|
"ai-portal.show-cases": {
|
|
12
12
|
"doc": "构件 `ai-portal.show-cases`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.show-cases\nproperties:\n list:\n - conversationId: c-1\n title: 故障排查-操作系统内存高\n summary: 服务已经正常启动,正常运行,但用户在外部访问失败服务已经正常启动,正常运行但用户正常运行\n scenario: 主机故障排查\n - conversationId: c-2\n title: Hi\n summary: There\n scenario: 主机巡检\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.show-cases id=\"brick-1\"></ai-portal.show-cases>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# conversationId: \"c-1\",\n# title: \"故障排查-操作系统内存高\",\n# summary:\n# \"服务已经正常启动,正常运行,但用户在外部访问失败服务已经正常启动,正常运行但用户正常运行\",\n# scenario: \"主机故障排查\",\n# },\n# {\n# conversationId: \"c-2\",\n# title: \"Hi\",\n# summary: \"There\",\n# scenario: \"主机巡检\",\n# },\n# ];\n# </script>\n# \n```\n"
|
|
13
13
|
},
|
|
14
14
|
"ai-portal.mcp-tools": {
|
|
15
15
|
"doc": "构件 `ai-portal.mcp-tools`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.mcp-tools\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.mcp-tools>Hello world</ai-portal.mcp-tools>\n# \n```\n"
|
|
16
16
|
},
|
|
17
|
-
"ai-portal.chat-box": {
|
|
18
|
-
"doc": "构件 `ai-portal.chat-box`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-box\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-box>Hello world</ai-portal.chat-box>\n# \n```\n\n### With cruise canvas\n\n```yaml preview minHeight=\"600px\"\nbrick: div\nproperties:\n style:\n width: 100vw\n height: 100vh\n position: fixed\n top: 0\n left: 0\ncontext:\n - name: task\nchildren:\n - brick: ai-portal.chat-box\n if: <%= !CTX.task %>\n properties:\n style:\n position: absolute\n width: 500px\n maxWidth: 90vw\n maxHeight: 90vh\n top: 50%\n left: 50%\n transform: translate(-50%, -50%)\n events:\n message.submit:\n useProvider: basic.http-request\n args:\n - \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\"\n # - /api/mocks/task/send\n # - \"http://localhost:8888/.netlify/functions/task-send\"\n # - \"https://serverless-mocks.netlify.app/.netlify/functions/task-send\"\n - method: POST\n body: |\n <%\n JSON.stringify({\n input: EVENT.detail\n })\n %>\n headers:\n Content-Type: application/json\n callback:\n error:\n action: handleHttpError\n success:\n action: context.replace\n args:\n - task\n - <% EVENT.detail %>\n - brick: ai-portal.cruise-canvas\n if: <%= !!CTX.task %>\n properties:\n taskId: <% CTX.task.id %>\n# -- YAML DELIMITER (1nbbm8) --\n# <div style=\"width: 100vw; height: 100vh; position: fixed; top: 0; left: 0\">\n# <ai-portal.chat-box\n# style=\"\n# position: absolute;\n# width: 500px;\n# max-width: 90vw;\n# max-height: 90vh;\n# top: 50%;\n# left: 50%;\n# transform: translate(-50%, -50%);\n# \"\n# id=\"brick-1\"\n# ></ai-portal.chat-box>\n# <ai-portal.cruise-canvas\n# task-id=\"<% CTX.task.id %>\"\n# ></ai-portal.cruise-canvas>\n# </div>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.addEventListener(\"message.submit\", (e) => {\n# const provider = document.createElement(\"basic.http-request\");\n# const promise = Promise.resolve(\n# provider.resolve(\n# /* WARN: incompatible expressions in HTML, please try YAML: */\n# \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\",\n# {\n# method: \"POST\",\n# body: \"<%\\n JSON.stringify({\\n input: EVENT.detail\\n })\\n%>\\n\",\n# headers: { \"Content-Type\": \"application/json\" },\n# }\n# )\n# );\n# promise.then((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# promise.catch((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# });\n# </script>\n# \n```\n"
|
|
19
|
-
},
|
|
20
17
|
"ai-portal.chat-stream": {
|
|
21
18
|
"doc": "构件 `ai-portal.chat-stream`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-stream\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-stream>Hello world</ai-portal.chat-stream>\n# \n```\n"
|
|
22
19
|
},
|
|
@@ -26,6 +23,9 @@
|
|
|
26
23
|
"ai-portal.ai-agents": {
|
|
27
24
|
"doc": "构件 `ai-portal.ai-agents`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.ai-agents\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.ai-agents>Hello world</ai-portal.ai-agents>\n# \n```\n"
|
|
28
25
|
},
|
|
26
|
+
"ai-portal.chat-box": {
|
|
27
|
+
"doc": "构件 `ai-portal.chat-box`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-box\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-box>Hello world</ai-portal.chat-box>\n# \n```\n\n### With cruise canvas\n\n```yaml preview minHeight=\"600px\"\nbrick: div\nproperties:\n style:\n width: 100vw\n height: 100vh\n position: fixed\n top: 0\n left: 0\ncontext:\n - name: task\nchildren:\n - brick: ai-portal.chat-box\n if: <%= !CTX.task %>\n properties:\n style:\n position: absolute\n width: 500px\n maxWidth: 90vw\n maxHeight: 90vh\n top: 50%\n left: 50%\n transform: translate(-50%, -50%)\n events:\n message.submit:\n useProvider: basic.http-request\n args:\n - \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\"\n # - /api/mocks/task/send\n # - \"http://localhost:8888/.netlify/functions/task-send\"\n # - \"https://serverless-mocks.netlify.app/.netlify/functions/task-send\"\n - method: POST\n body: |\n <%\n JSON.stringify({\n input: EVENT.detail\n })\n %>\n headers:\n Content-Type: application/json\n callback:\n error:\n action: handleHttpError\n success:\n action: context.replace\n args:\n - task\n - <% EVENT.detail %>\n - brick: ai-portal.cruise-canvas\n if: <%= !!CTX.task %>\n properties:\n taskId: <% CTX.task.id %>\n# -- YAML DELIMITER (1nbbm8) --\n# <div style=\"width: 100vw; height: 100vh; position: fixed; top: 0; left: 0\">\n# <ai-portal.chat-box\n# style=\"\n# position: absolute;\n# width: 500px;\n# max-width: 90vw;\n# max-height: 90vh;\n# top: 50%;\n# left: 50%;\n# transform: translate(-50%, -50%);\n# \"\n# id=\"brick-1\"\n# ></ai-portal.chat-box>\n# <ai-portal.cruise-canvas\n# task-id=\"<% CTX.task.id %>\"\n# ></ai-portal.cruise-canvas>\n# </div>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.addEventListener(\"message.submit\", (e) => {\n# const provider = document.createElement(\"basic.http-request\");\n# const promise = Promise.resolve(\n# provider.resolve(\n# /* WARN: incompatible expressions in HTML, please try YAML: */\n# \"<% `${BASE_URL}/api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create` %>\",\n# {\n# method: \"POST\",\n# body: \"<%\\n JSON.stringify({\\n input: EVENT.detail\\n })\\n%>\\n\",\n# headers: { \"Content-Type\": \"application/json\" },\n# }\n# )\n# );\n# promise.then((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# promise.catch((r) => {\n# // WARN: encountered incompatible event handlers in HTML mode, please try YAML.\n# });\n# });\n# </script>\n# \n```\n"
|
|
28
|
+
},
|
|
29
29
|
"ai-portal.page-container": {
|
|
30
30
|
"doc": "构件 `ai-portal.page-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.page-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.page-container>Hello world</ai-portal.page-container>\n# \n```\n"
|
|
31
31
|
},
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
"ai-portal.preview-container": {
|
|
39
39
|
"doc": "构件 `ai-portal.preview-container`\n\n## Examples\n\n### Basic\n\n```yaml preview minHeight=\"600px\"\nbrick: ai-portal.preview-container\nproperties:\n style:\n position: fixed\n inset: 0\n overflowY: auto\n source: |\n const RESPONSE = {\n \"list\": [\n {\n \"inode_usage\": [\n {\n \"total_inodes\": 21162000,\n \"used_inodes\": 1385716,\n \"free_inodes\": 19776284,\n \"percent\": \"7%\",\n \"device\": \"/dev/sda1\",\n \"mount_point\": \"/\"\n },\n {\n \"mount_point\": \"/boot\",\n \"total_inodes\": 524288,\n \"used_inodes\": 333,\n \"free_inodes\": 523955,\n \"percent\": \"1%\",\n \"device\": \"/dev/vda1\"\n }\n ],\n \"ip\": \"172.30.0.134\",\n \"disk_usage\": [\n {\n \"total\": \"95.00GB\",\n \"used\": \"85.00GB\",\n \"free\": \"9.00GB\",\n \"percent\": \"91%\",\n \"rw_status\": \"rw\",\n \"large_files\": [\n {\n \"size\": \"1.00GB\",\n \"path\": \"/temp/1\"\n },\n {\n \"path\": \"/temp/2\",\n \"size\": \"759.00MB\"\n },\n {\n \"size\": \"360.00MB\",\n \"path\": \"/temp/3\"\n }\n ],\n \"device\": \"/dev/sda1\",\n \"mount_point\": \"/\"\n },\n {\n \"rw_status\": \"rw\",\n \"device\": \"/dev/vda1\",\n \"mount_point\": \"/boot\",\n \"total\": \"1014.00MB\",\n \"used\": \"181.00MB\",\n \"free\": \"834.00MB\",\n \"percent\": \"18%\"\n }\n ]\n }\n ]\n };\n\n export default (\n <View title=\"磁盘使用情况\">\n {RESPONSE.list.map((item) => (\n <Card title={item.ip}>\n {/* 磁盘空间使用情况 */}\n <Plaintext>磁盘空间使用</Plaintext>\n <Table\n dataSource={{ list: item.disk_usage }}\n columns={[\n { dataIndex: \"device\", key: \"device\", title: \"设备\" },\n { dataIndex: \"mount_point\", key: \"mount_point\", title: \"挂载点\" },\n { dataIndex: \"total\", key: \"total\", title: \"总大小\" },\n { dataIndex: \"used\", key: \"used\", title: \"已用空间\" },\n { dataIndex: \"free\", key: \"free\", title: \"可用空间\" },\n { dataIndex: \"percent\", key: \"percent\", title: \"使用率\" },\n { dataIndex: \"rw_status\", key: \"rw_status\", title: \"读写状态\" }\n ]}\n rowKey=\"device\"\n pagination={false}\n />\n\n {/* Inode 使用情况 */}\n <Plaintext>Inode 使用情况</Plaintext>\n <Table\n dataSource={{ list: item.inode_usage }}\n columns={[\n { dataIndex: \"device\", key: \"device\", title: \"设备\" },\n { dataIndex: \"mount_point\", key: \"mount_point\", title: \"挂载点\" },\n { dataIndex: \"total_inodes\", key: \"total_inodes\", title: \"Inode 总数\" },\n { dataIndex: \"used_inodes\", key: \"used_inodes\", title: \"已用 Inode\" },\n { dataIndex: \"free_inodes\", key: \"free_inodes\", title: \"空闲 Inode\" },\n {\n dataIndex: \"percent\", key: \"percent\", title: \"使用率\",\n render: (cell, record) => (\n // <Plaintext>{record.percent}%</Plaintext>\n `~${record.percent}`\n )\n }\n ]}\n rowKey=\"device\"\n pagination={false}\n />\n\n {/* 大文件列表(仅当存在 large_files 且有内容时) */}\n {item.disk_usage\n .filter(disk => disk.large_files && disk.large_files.length > 0)\n .map(disk =>\n disk.large_files ? (\n <Fragment key={disk.device}>\n <Plaintext>{`大文件列表 (${disk.mount_point})`}</Plaintext>\n <Table\n dataSource={{ list: disk.large_files }}\n columns={[\n { dataIndex: \"path\", key: \"path\", title: \"路径\" },\n { dataIndex: \"size\", key: \"size\", title: \"大小\" }\n ]}\n rowKey=\"path\"\n pagination={false}\n />\n </Fragment>\n ) : null\n )}\n </Card>\n ))}\n </View>\n );\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.preview-container\n# style=\"position: fixed; inset: 0; overflow-y: auto\"\n# id=\"brick-1\"\n# ></ai-portal.preview-container>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.source =\n# 'const RESPONSE = {\\n \"list\": [\\n {\\n \"inode_usage\": [\\n {\\n \"total_inodes\": 21162000,\\n \"used_inodes\": 1385716,\\n \"free_inodes\": 19776284,\\n \"percent\": \"7%\",\\n \"device\": \"/dev/sda1\",\\n \"mount_point\": \"/\"\\n },\\n {\\n \"mount_point\": \"/boot\",\\n \"total_inodes\": 524288,\\n \"used_inodes\": 333,\\n \"free_inodes\": 523955,\\n \"percent\": \"1%\",\\n \"device\": \"/dev/vda1\"\\n }\\n ],\\n \"ip\": \"172.30.0.134\",\\n \"disk_usage\": [\\n {\\n \"total\": \"95.00GB\",\\n \"used\": \"85.00GB\",\\n \"free\": \"9.00GB\",\\n \"percent\": \"91%\",\\n \"rw_status\": \"rw\",\\n \"large_files\": [\\n {\\n \"size\": \"1.00GB\",\\n \"path\": \"/temp/1\"\\n },\\n {\\n \"path\": \"/temp/2\",\\n \"size\": \"759.00MB\"\\n },\\n {\\n \"size\": \"360.00MB\",\\n \"path\": \"/temp/3\"\\n }\\n ],\\n \"device\": \"/dev/sda1\",\\n \"mount_point\": \"/\"\\n },\\n {\\n \"rw_status\": \"rw\",\\n \"device\": \"/dev/vda1\",\\n \"mount_point\": \"/boot\",\\n \"total\": \"1014.00MB\",\\n \"used\": \"181.00MB\",\\n \"free\": \"834.00MB\",\\n \"percent\": \"18%\"\\n }\\n ]\\n }\\n ]\\n};\\n\\nexport default (\\n <View title=\"磁盘使用情况\">\\n {RESPONSE.list.map((item) => (\\n <Card title={item.ip}>\\n {/* 磁盘空间使用情况 */}\\n <Plaintext>磁盘空间使用</Plaintext>\\n <Table\\n dataSource={{ list: item.disk_usage }}\\n columns={[\\n { dataIndex: \"device\", key: \"device\", title: \"设备\" },\\n { dataIndex: \"mount_point\", key: \"mount_point\", title: \"挂载点\" },\\n { dataIndex: \"total\", key: \"total\", title: \"总大小\" },\\n { dataIndex: \"used\", key: \"used\", title: \"已用空间\" },\\n { dataIndex: \"free\", key: \"free\", title: \"可用空间\" },\\n { dataIndex: \"percent\", key: \"percent\", title: \"使用率\" },\\n { dataIndex: \"rw_status\", key: \"rw_status\", title: \"读写状态\" }\\n ]}\\n rowKey=\"device\"\\n pagination={false}\\n />\\n\\n {/* Inode 使用情况 */}\\n <Plaintext>Inode 使用情况</Plaintext>\\n <Table\\n dataSource={{ list: item.inode_usage }}\\n columns={[\\n { dataIndex: \"device\", key: \"device\", title: \"设备\" },\\n { dataIndex: \"mount_point\", key: \"mount_point\", title: \"挂载点\" },\\n { dataIndex: \"total_inodes\", key: \"total_inodes\", title: \"Inode 总数\" },\\n { dataIndex: \"used_inodes\", key: \"used_inodes\", title: \"已用 Inode\" },\\n { dataIndex: \"free_inodes\", key: \"free_inodes\", title: \"空闲 Inode\" },\\n {\\n dataIndex: \"percent\", key: \"percent\", title: \"使用率\",\\n render: (cell, record) => (\\n // <Plaintext>{record.percent}%</Plaintext>\\n `~${record.percent}`\\n )\\n }\\n ]}\\n rowKey=\"device\"\\n pagination={false}\\n />\\n\\n {/* 大文件列表(仅当存在 large_files 且有内容时) */}\\n {item.disk_usage\\n .filter(disk => disk.large_files && disk.large_files.length > 0)\\n .map(disk =>\\n disk.large_files ? (\\n <Fragment key={disk.device}>\\n <Plaintext>{`大文件列表 (${disk.mount_point})`}</Plaintext>\\n <Table\\n dataSource={{ list: disk.large_files }}\\n columns={[\\n { dataIndex: \"path\", key: \"path\", title: \"路径\" },\\n { dataIndex: \"size\", key: \"size\", title: \"大小\" }\\n ]}\\n rowKey=\"path\"\\n pagination={false}\\n />\\n </Fragment>\\n ) : null\\n )}\\n </Card>\\n ))}\\n </View>\\n);\\n';\n# </script>\n# \n```\n"
|
|
40
40
|
},
|
|
41
|
-
"ai-portal.stat-with-mini-chart": {
|
|
42
|
-
"doc": "构件 `ai-portal.stat-with-mini-chart`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n\n### Size\n\n```yaml preview\nbrick: ai-portal.stat-with-mini-chart\nproperties:\n label: 请求数\n value: \"563.5\"\n size: small\n xField: time\n yField: request_total\n lineColor: \"#295DFF\"\n data:\n - request_total: 642.2\n time: 1730597995.403\n - request_total: 621.3\n time: 1730599200\n - request_total: 600.2\n time: 1730601000\n - request_total: 601.9666666666667\n time: 1730602800\n - request_total: 592.4\n time: 1730604600\n - request_total: 567.8666666666667\n time: 1730606400\n - request_total: 651.3333333333334\n time: 1730608200\n - request_total: 571.9677419354839\n time: 1730610000\n - request_total: 550.2\n time: 1730611800\n - request_total: 556.5666666666667\n time: 1730613600\n - request_total: 565.6333333333333\n time: 1730615400\n - request_total: 586.5666666666667\n time: 1730617200\n - request_total: 611.7\n time: 1730619000\n - request_total: 540.0645161290323\n time: 1730620800\n - request_total: 595.9333333333333\n time: 1730622600\n - request_total: 560.0333333333333\n time: 1730624400\n - request_total: 565.2333333333333\n time: 1730626200\n - request_total: 609.5806451612904\n time: 1730628000\n - request_total: 598.8\n time: 1730629800\n - request_total: 594.5333333333333\n time: 1730631600\n - request_total: 525.7\n time: 1730633400\n - request_total: 602.3666666666667\n time: 1730635200\n - request_total: 557.7333333333333\n time: 1730637000\n - request_total: 595.8666666666667\n time: 1730638800\n - request_total: 638.7\n time: 1730640600\n - request_total: 635.8333333333334\n time: 1730642400\n - request_total: 563.9\n time: 1730644200\n - request_total: 606.4516129032259\n time: 1730646000\n - request_total: 660.1\n time: 1730647800\n - request_total: 606.2666666666667\n time: 1730649600\n - request_total: 504.43333333333334\n time: 1730651400\n - request_total: 651.7333333333333\n time: 1730653200\n - request_total: 583.5\n time: 1730655000\n - request_total: 566.2333333333333\n time: 1730656800\n - request_total: 519.2333333333333\n time: 1730658600\n - request_total: 621.6333333333333\n time: 1730660400\n - request_total: 530.9333333333333\n time: 1730662200\n - request_total: 685.3\n time: 1730664000\n - request_total: 616.3333333333334\n time: 1730665800\n - request_total: 580.3333333333334\n time: 1730667600\n - request_total: 568.5666666666667\n time: 1730669400\n - request_total: 619.3\n time: 1730671200\n - request_total: 636.2333333333333\n time: 1730673000\n - request_total: 630.4666666666667\n time: 1730674800\n - request_total: 621.4666666666667\n time: 1730676600\n - request_total: 587.5333333333333\n time: 1730678400\n - request_total: 542.8666666666667\n time: 1730680200\n - request_total: 579\n time: 1730682000\n - request_total: 563.5\n time: 1730683800\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.stat-with-mini-chart\n# label=\"请求数\"\n# value=\"563.5\"\n# size=\"small\"\n# x-field=\"time\"\n# y-field=\"request_total\"\n# line-color=\"#295DFF\"\n# id=\"brick-1\"\n# ></ai-portal.stat-with-mini-chart>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.data = [\n# {\n# request_total: 642.2,\n# time: 1730597995.403,\n# },\n# {\n# request_total: 621.3,\n# time: 1730599200,\n# },\n# {\n# request_total: 600.2,\n# time: 1730601000,\n# },\n# {\n# request_total: 601.9666666666667,\n# time: 1730602800,\n# },\n# {\n# request_total: 592.4,\n# time: 1730604600,\n# },\n# {\n# request_total: 567.8666666666667,\n# time: 1730606400,\n# },\n# {\n# request_total: 651.3333333333334,\n# time: 1730608200,\n# },\n# {\n# request_total: 571.9677419354839,\n# time: 1730610000,\n# },\n# {\n# request_total: 550.2,\n# time: 1730611800,\n# },\n# {\n# request_total: 556.5666666666667,\n# time: 1730613600,\n# },\n# {\n# request_total: 565.6333333333333,\n# time: 1730615400,\n# },\n# {\n# request_total: 586.5666666666667,\n# time: 1730617200,\n# },\n# {\n# request_total: 611.7,\n# time: 1730619000,\n# },\n# {\n# request_total: 540.0645161290323,\n# time: 1730620800,\n# },\n# {\n# request_total: 595.9333333333333,\n# time: 1730622600,\n# },\n# {\n# request_total: 560.0333333333333,\n# time: 1730624400,\n# },\n# {\n# request_total: 565.2333333333333,\n# time: 1730626200,\n# },\n# {\n# request_total: 609.5806451612904,\n# time: 1730628000,\n# },\n# {\n# request_total: 598.8,\n# time: 1730629800,\n# },\n# {\n# request_total: 594.5333333333333,\n# time: 1730631600,\n# },\n# {\n# request_total: 525.7,\n# time: 1730633400,\n# },\n# {\n# request_total: 602.3666666666667,\n# time: 1730635200,\n# },\n# {\n# request_total: 557.7333333333333,\n# time: 1730637000,\n# },\n# {\n# request_total: 595.8666666666667,\n# time: 1730638800,\n# },\n# {\n# request_total: 638.7,\n# time: 1730640600,\n# },\n# {\n# request_total: 635.8333333333334,\n# time: 1730642400,\n# },\n# {\n# request_total: 563.9,\n# time: 1730644200,\n# },\n# {\n# request_total: 606.4516129032259,\n# time: 1730646000,\n# },\n# {\n# request_total: 660.1,\n# time: 1730647800,\n# },\n# {\n# request_total: 606.2666666666667,\n# time: 1730649600,\n# },\n# {\n# request_total: 504.43333333333334,\n# time: 1730651400,\n# },\n# {\n# request_total: 651.7333333333333,\n# time: 1730653200,\n# },\n# {\n# request_total: 583.5,\n# time: 1730655000,\n# },\n# {\n# request_total: 566.2333333333333,\n# time: 1730656800,\n# },\n# {\n# request_total: 519.2333333333333,\n# time: 1730658600,\n# },\n# {\n# request_total: 621.6333333333333,\n# time: 1730660400,\n# },\n# {\n# request_total: 530.9333333333333,\n# time: 1730662200,\n# },\n# {\n# request_total: 685.3,\n# time: 1730664000,\n# },\n# {\n# request_total: 616.3333333333334,\n# time: 1730665800,\n# },\n# {\n# request_total: 580.3333333333334,\n# time: 1730667600,\n# },\n# {\n# request_total: 568.5666666666667,\n# time: 1730669400,\n# },\n# {\n# request_total: 619.3,\n# time: 1730671200,\n# },\n# {\n# request_total: 636.2333333333333,\n# time: 1730673000,\n# },\n# {\n# request_total: 630.4666666666667,\n# time: 1730674800,\n# },\n# {\n# request_total: 621.4666666666667,\n# time: 1730676600,\n# },\n# {\n# request_total: 587.5333333333333,\n# time: 1730678400,\n# },\n# {\n# request_total: 542.8666666666667,\n# time: 1730680200,\n# },\n# {\n# request_total: 579,\n# time: 1730682000,\n# },\n# {\n# request_total: 563.5,\n# time: 1730683800,\n# },\n# ];\n# </script>\n# \n```\n"
|
|
43
|
-
},
|
|
44
41
|
"ai-portal.action-buttons": {
|
|
45
42
|
"doc": "构件 `ai-portal.action-buttons`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-box\nchildren:\n - brick: ai-portal.action-buttons\n properties:\n items:\n - event: think\n text: 深度思考\n icon:\n - lib: antd\n theme: outlined\n icon: reddit\n - event: networking\n text: 联网搜索\n icon:\n lib: antd\n theme: outlined\n icon: global\n events:\n think:\n action: console.log\n networking:\n action: console.log\n slot: actions\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-box>\n# <ai-portal.action-buttons\n# slot=\"actions\"\n# id=\"brick-1\"\n# ></ai-portal.action-buttons>\n# </ai-portal.chat-box>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.items = [\n# {\n# event: \"think\",\n# text: \"深度思考\",\n# icon: [\n# {\n# lib: \"antd\",\n# theme: \"outlined\",\n# icon: \"reddit\",\n# },\n# ],\n# },\n# {\n# event: \"networking\",\n# text: \"联网搜索\",\n# icon: {\n# lib: \"antd\",\n# theme: \"outlined\",\n# icon: \"global\",\n# },\n# },\n# ];\n# brick_1.addEventListener(\"think\", (e) => {\n# console.log(e.detail);\n# });\n# brick_1.addEventListener(\"networking\", (e) => {\n# console.log(e.detail);\n# });\n# </script>\n# \n```\n"
|
|
46
43
|
},
|
|
47
44
|
"ai-portal.goal-card-list": {
|
|
48
45
|
"doc": "构件 `ai-portal.goal-card-list`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.goal-card-list\nproperties:\n style:\n width: 600px\n goalList:\n - title: 页面流程绘制\n index: 100124\n state: ready\n instanceId: abc1\n conversations:\n - 会话1\n - 会话2\n - 会话3\n - title: 原型与设计绘制\n index: 100125\n state: working\n instanceId: bdc9\n conversations:\n - 会话4\n - title: 设计稿绘制\n index: 100126\n state: completed\n instanceId: d76a\n conversations:\n - 会话5\n - 会话6\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.goal-card-list\n# style=\"width: 600px\"\n# id=\"brick-1\"\n# ></ai-portal.goal-card-list>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.goalList = [\n# {\n# title: \"页面流程绘制\",\n# index: 100124,\n# state: \"ready\",\n# instanceId: \"abc1\",\n# conversations: [\"会话1\", \"会话2\", \"会话3\"],\n# },\n# {\n# title: \"原型与设计绘制\",\n# index: 100125,\n# state: \"working\",\n# instanceId: \"bdc9\",\n# conversations: [\"会话4\"],\n# },\n# {\n# title: \"设计稿绘制\",\n# index: 100126,\n# state: \"completed\",\n# instanceId: \"d76a\",\n# conversations: [\"会话5\", \"会话6\"],\n# },\n# ];\n# </script>\n# \n```\n"
|
|
49
46
|
},
|
|
50
|
-
"ai-portal.project-conversations": {
|
|
51
|
-
"doc": "构件 `ai-portal.project-conversations`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.project-conversations\nproperties:\n list:\n - conversationId: \"conv-a\"\n title: 标题一\n description: 这是一段描述\n startTime: 1757904096\n goal: GOAL0005\n - conversationId: \"conv-b\"\n title: 标题二\n startTime: 1757863597\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations id=\"brick-1\"></ai-portal.project-conversations>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# conversationId: \"conv-a\",\n# title: \"标题一\",\n# description: \"这是一段描述\",\n# startTime: 1757904096,\n# goal: \"GOAL0005\",\n# },\n# {\n# conversationId: \"conv-b\",\n# title: \"标题二\",\n# startTime: 1757863597,\n# },\n# ];\n# </script>\n# \n```\n\n### Loading\n\n```yaml preview\nbrick: ai-portal.project-conversations\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations></ai-portal.project-conversations>\n# \n```\n"
|
|
52
|
-
},
|
|
53
47
|
"ai-portal.project-knowledges": {
|
|
54
48
|
"doc": "构件 `ai-portal.project-knowledges`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.project-knowledges\nproperties:\n list:\n - knowledgeId: \"knowledge-a\"\n title: 标题一\n description: 这是一段描述\n time: 1757904096\n - knowledgeId: \"knowledge-b\"\n title: 标题二\n time: 1757863597\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-knowledges id=\"brick-1\"></ai-portal.project-knowledges>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# knowledgeId: \"knowledge-a\",\n# title: \"标题一\",\n# description: \"这是一段描述\",\n# time: 1757904096,\n# },\n# {\n# knowledgeId: \"knowledge-b\",\n# title: \"标题二\",\n# time: 1757863597,\n# },\n# ];\n# </script>\n# \n```\n\n### Loading\n\n```yaml preview\nbrick: ai-portal.project-knowledges\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-knowledges></ai-portal.project-knowledges>\n# \n```\n"
|
|
55
49
|
},
|
|
50
|
+
"ai-portal.project-conversations": {
|
|
51
|
+
"doc": "构件 `ai-portal.project-conversations`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.project-conversations\nproperties:\n list:\n - conversationId: \"conv-a\"\n title: 标题一\n description: 这是一段描述\n startTime: 1757904096\n goal: GOAL0005\n - conversationId: \"conv-b\"\n title: 标题二\n startTime: 1757863597\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations id=\"brick-1\"></ai-portal.project-conversations>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# conversationId: \"conv-a\",\n# title: \"标题一\",\n# description: \"这是一段描述\",\n# startTime: 1757904096,\n# goal: \"GOAL0005\",\n# },\n# {\n# conversationId: \"conv-b\",\n# title: \"标题二\",\n# startTime: 1757863597,\n# },\n# ];\n# </script>\n# \n```\n\n### Loading\n\n```yaml preview\nbrick: ai-portal.project-conversations\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.project-conversations></ai-portal.project-conversations>\n# \n```\n"
|
|
52
|
+
},
|
|
56
53
|
"ai-portal.activity-timeline": {
|
|
57
54
|
"doc": "构件 `ai-portal.activity-timeline`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.activity-timeline\nproperties:\n list:\n - user_id: u001\n user_name: Tom\n action_type: create_goal\n time: 1757853597\n - user_id: u001\n user_name: Tom\n action_type: alter_owner\n time: 1757863597\n metadata:\n after:\n user_name: Lucy\n - user_id: u002\n user_name: Lucy\n action_type: start_conversation\n time: 1757904096\n metadata:\n conversation_id: c001\n conversation_title: 项目规划\n - user_id: u002\n user_name: Lucy\n action_type: decompose_goals\n time: 1757904096\n metadata:\n sub_goals_count: 2\n sub_goals:\n - title: \"先计划\"\n - title: \"再执行\"\n - user_id: u002\n user_name: Lucy\n action_type: alter_user\n time: 1757904096\n metadata:\n before:\n - user_name: Jim\n after:\n - user_name: Joy\n - user_name: Green\n - user_id: u001\n user_name: Tom\n action_type: add_comment\n time: 1757904096\n metadata:\n comment_content: Good!\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.activity-timeline id=\"brick-1\"></ai-portal.activity-timeline>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.list = [\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"create_goal\",\n# time: 1757853597,\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"alter_owner\",\n# time: 1757863597,\n# metadata: {\n# after: {\n# user_name: \"Lucy\",\n# },\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"start_conversation\",\n# time: 1757904096,\n# metadata: {\n# conversation_id: \"c001\",\n# conversation_title: \"项目规划\",\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"decompose_goals\",\n# time: 1757904096,\n# metadata: {\n# sub_goals_count: 2,\n# sub_goals: [\n# {\n# title: \"先计划\",\n# },\n# {\n# title: \"再执行\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u002\",\n# user_name: \"Lucy\",\n# action_type: \"alter_user\",\n# time: 1757904096,\n# metadata: {\n# before: [\n# {\n# user_name: \"Jim\",\n# },\n# ],\n# after: [\n# {\n# user_name: \"Joy\",\n# },\n# {\n# user_name: \"Green\",\n# },\n# ],\n# },\n# },\n# {\n# user_id: \"u001\",\n# user_name: \"Tom\",\n# action_type: \"add_comment\",\n# time: 1757904096,\n# metadata: {\n# comment_content: \"Good!\",\n# },\n# },\n# ];\n# </script>\n# \n```\n"
|
|
58
55
|
},
|
|
56
|
+
"ai-portal.home-container": {
|
|
57
|
+
"doc": "构件 `ai-portal.home-container`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.home-container\nproperties:\n textContent: Hello world\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.home-container>Hello world</ai-portal.home-container>\n# \n```\n"
|
|
58
|
+
},
|
|
59
59
|
"ai-portal.chat-input": {
|
|
60
60
|
"doc": "构件 `ai-portal.chat-input`\n\n## Examples\n\n### Basic\n\n```yaml preview\nbrick: ai-portal.chat-input\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.chat-input></ai-portal.chat-input>\n# \n```\n"
|
|
61
61
|
},
|
|
@@ -91,5 +91,8 @@
|
|
|
91
91
|
},
|
|
92
92
|
"ai-portal.chat-panel": {
|
|
93
93
|
"doc": "构件 `ai-portal.chat-panel`\n\n## 介绍\n\n弹出式 AI 对话面板,提供一个模态框样式的聊天界面,支持与 AI 助手进行对话交互。\n\n## Examples\n\n### Basic\n\n```yaml preview\n- brick: eo-button\n properties:\n themeVariant: elevo\n textContent: 打开对话面板\n events:\n click:\n target: \"#chatPanel\"\n method: open\n- brick: ai-portal.chat-panel\n properties:\n id: chatPanel\n width: 600\n height: 800\n panelTitle: AI 助手\n placeholder: 请输入您的问题...\n# -- YAML DELIMITER (1nbbm8) --\n# <eo-button theme-variant=\"elevo\" id=\"brick-1\">打开对话面板</eo-button>\n# <ai-portal.chat-panel\n# panel-title=\"AI 助手\"\n# placeholder=\"请输入您的问题...\"\n# id=\"chatPanel\"\n# ></ai-portal.chat-panel>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.addEventListener(\"click\", (e) => {\n# const brick = document.querySelector(\"#chatPanel\");\n# brick.open();\n# });\n# \n# const chatPanel = document.getElementById(\"chatPanel\");\n# chatPanel.width = 600;\n# chatPanel.height = 800;\n# </script>\n# \n```\n"
|
|
94
|
+
},
|
|
95
|
+
"ai-portal.space-workbench": {
|
|
96
|
+
"doc": "构件 `ai-portal.space-workbench`\n\n空间工作台构件,用于展示空间的顶部导航栏,包括空间信息、成员管理、消息通知等功能。\n\n## Examples\n\n### 基础使用\n\n```yaml preview\nbrick: ai-portal.space-workbench\nproperties:\n spaceDetail:\n name: \"产品设计空间\"\n instanceId: \"space-001\"\n description: \"这是一个用于产品设计协作的空间\"\n notifyCenterUrl: \"/notify-center\"\n notices:\n - id: \"msg-1\"\n isRead: false\n type: \"project\"\n title: \"协作流【研发设计】已完成\"\n - id: \"msg-2\"\n isRead: false\n type: \"space\"\n title: \"协作流【协作流名称】 - 【活动名称】需要人工确认\"\n - id: \"msg-3\"\n type: \"account\"\n isRead: true\n title: \"【项目协作功能】已发布\"\nevents:\n go.back:\n action: console.log\n args:\n - \"点击了返回按钮\"\n members.click:\n action: console.log\n args:\n - \"点击了成员按钮\"\n notice.click:\n action: console.log\n args:\n - \"点击了消息:\"\n - \"<% EVENT.detail %>\"\n mark.all.read:\n action: console.log\n args:\n - \"点击了全部已读\"\n space.edit:\n action: console.log\n args:\n - \"点击了编辑空间\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.space-workbench\n# notify-center-url=\"/notify-center\"\n# id=\"brick-1\"\n# ></ai-portal.space-workbench>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.spaceDetail = {\n# name: \"产品设计空间\",\n# instanceId: \"space-001\",\n# description: \"这是一个用于产品设计协作的空间\",\n# };\n# brick_1.notices = [\n# {\n# id: \"msg-1\",\n# isRead: false,\n# type: \"project\",\n# title: \"协作流【研发设计】已完成\",\n# },\n# {\n# id: \"msg-2\",\n# isRead: false,\n# type: \"space\",\n# title: \"协作流【协作流名称】 - 【活动名称】需要人工确认\",\n# },\n# {\n# id: \"msg-3\",\n# type: \"account\",\n# isRead: true,\n# title: \"【项目协作功能】已发布\",\n# },\n# ];\n# brick_1.addEventListener(\"go.back\", (e) => {\n# console.log(\"点击了返回按钮\");\n# });\n# brick_1.addEventListener(\"members.click\", (e) => {\n# console.log(\"点击了成员按钮\");\n# });\n# brick_1.addEventListener(\"notice.click\", (e) => {\n# console.log(\"点击了消息:\", e.detail);\n# });\n# brick_1.addEventListener(\"mark.all.read\", (e) => {\n# console.log(\"点击了全部已读\");\n# });\n# brick_1.addEventListener(\"space.edit\", (e) => {\n# console.log(\"点击了编辑空间\");\n# });\n# </script>\n# \n```\n\n### 无消息通知\n\n```yaml preview\nbrick: ai-portal.space-workbench\nproperties:\n spaceDetail:\n name: \"研发协作空间\"\n instanceId: \"space-002\"\n description: \"研发团队的协作空间\"\n notifyCenterUrl: \"/notify-center\"\n notices: []\nevents:\n go.back:\n action: console.log\n args:\n - \"返回\"\n members.click:\n action: console.log\n args:\n - \"查看成员\"\n space.edit:\n action: console.log\n args:\n - \"编辑空间\"\n# -- YAML DELIMITER (1nbbm8) --\n# <ai-portal.space-workbench\n# notify-center-url=\"/notify-center\"\n# id=\"brick-1\"\n# ></ai-portal.space-workbench>\n# \n# <script>\n# const brick_1 = document.getElementById(\"brick-1\");\n# brick_1.spaceDetail = {\n# name: \"研发协作空间\",\n# instanceId: \"space-002\",\n# description: \"研发团队的协作空间\",\n# };\n# brick_1.notices = [];\n# brick_1.addEventListener(\"go.back\", (e) => {\n# console.log(\"返回\");\n# });\n# brick_1.addEventListener(\"members.click\", (e) => {\n# console.log(\"查看成员\");\n# });\n# brick_1.addEventListener(\"space.edit\", (e) => {\n# console.log(\"编辑空间\");\n# });\n# </script>\n# \n```\n"
|
|
94
97
|
}
|
|
95
98
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.125 7C6.125 7.69619 6.40156 8.36387 6.89384 8.85616C7.38613 9.34844 8.05381 9.625 8.75 9.625C9.44619 9.625 10.1139 9.34844 10.6062 8.85616C11.0984 8.36387 11.375 7.69619 11.375 7C11.375 6.30381 11.0984 5.63613 10.6062 5.14384C10.1139 4.65156 9.44619 4.375 8.75 4.375C8.05381 4.375 7.38613 4.65156 6.89384 5.14384C6.40156 5.63613 6.125 6.30381 6.125 7Z" fill="white"/>
|
|
3
|
+
<path d="M17.5 7C17.5 7.69619 17.7766 8.36387 18.2688 8.85616C18.7611 9.34844 19.4288 9.625 20.125 9.625C20.8212 9.625 21.4889 9.34844 21.9812 8.85616C22.4734 8.36387 22.75 7.69619 22.75 7C22.75 6.30381 22.4734 5.63613 21.9812 5.14384C21.4889 4.65156 20.8212 4.375 20.125 4.375C19.4288 4.375 18.7611 4.65156 18.2688 5.14384C17.7766 5.63613 17.5 6.30381 17.5 7Z" fill="white"/>
|
|
4
|
+
<path d="M20.8372 10.5C22.6397 10.5 24.892 12.5195 24.4422 15.5488C23.9916 18.5763 20.3866 23.625 16.7816 23.625H11.375C15.4297 23.625 19.4854 17.0625 19.4854 14.0333C19.4854 11.0049 17.2323 10.5 17.2323 10.5H20.8372ZM11.767 13.769C13.0121 13.769 14.1601 12.6752 13.4645 11.6427C13.2346 11.2938 12.9223 11.007 12.555 10.8076C12.1878 10.6083 11.7771 10.5026 11.3593 10.5H7C7.48913 10.5 8.19525 10.906 8.72375 11.6077C9.49463 12.6315 10.486 13.769 11.767 13.769Z" fill="white" fill-opacity="0.6"/>
|
|
5
|
+
<path d="M16.233 13.769C14.9879 13.769 13.8399 12.6752 14.5355 11.6427C14.7653 11.2939 15.0775 11.0072 15.4446 10.8078C15.8116 10.6085 16.2222 10.5028 16.6399 10.5H21C20.5109 10.5 19.8048 10.906 19.2763 11.6077C18.5054 12.6315 17.514 13.769 16.233 13.769ZM7.16275 10.5C5.36025 10.5 3.108 12.5195 3.55775 15.5488C4.00925 18.5763 7.61338 23.625 11.2184 23.625H16.625C12.5703 23.625 8.51463 17.0625 8.51463 14.0333C8.51463 11.0049 10.7678 10.5 10.7678 10.5H7.16275Z" fill="white"/>
|
|
6
|
+
</svg>
|