classicy 0.5.7 → 0.5.9
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/173.index.js +2 -0
- package/173.index.js.LICENSE.txt +25 -0
- package/262.index.js +2 -0
- package/262.index.js.LICENSE.txt +11 -0
- package/303.index.js +2 -0
- package/303.index.js.LICENSE.txt +1 -0
- package/340.index.js +2 -0
- package/340.index.js.LICENSE.txt +11 -0
- package/353.index.js +1 -0
- package/394.index.js +1 -0
- package/395.index.js +2 -0
- package/395.index.js.LICENSE.txt +11 -0
- package/3c6dd90084fa516904c8.svg +35 -0
- package/42.index.js +2 -0
- package/42.index.js.LICENSE.txt +11 -0
- package/446.index.js +2 -0
- package/446.index.js.LICENSE.txt +11 -0
- package/723.index.js +73 -0
- package/723.index.js.LICENSE.txt +7 -0
- package/771.index.js +2 -0
- package/771.index.js.LICENSE.txt +11 -0
- package/85.index.js +2 -0
- package/85.index.js.LICENSE.txt +11 -0
- package/SystemFolder/ControlPanels/AppManager/ClassicyAppManager.d.ts +91 -0
- package/SystemFolder/ControlPanels/AppManager/ClassicyAppManagerContext.d.ts +11 -0
- package/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearance.d.ts +111 -0
- package/SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearanceManager.d.ts +2 -0
- package/SystemFolder/ControlPanels/AppearanceManager/ClassicyColors.d.ts +2 -0
- package/SystemFolder/ControlPanels/AppearanceManager/ClassicySize.d.ts +4 -0
- package/SystemFolder/ControlPanels/ClassicyControlPanels.d.ts +2 -0
- package/SystemFolder/ControlPanels/DateAndTimeManager/ClassicyDateAndTimeManager.d.ts +4 -0
- package/SystemFolder/ControlPanels/SoundManager/ClassicySoundManager.d.ts +3 -0
- package/SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerContext.d.ts +78 -0
- package/SystemFolder/Finder/Finder.d.ts +2 -0
- package/SystemFolder/Finder/FinderContext.d.ts +2 -0
- package/SystemFolder/QuickTime/MoviePlayer/MoviePlayer.d.ts +15 -0
- package/SystemFolder/QuickTime/MoviePlayer/MoviePlayerContext.d.ts +15 -0
- package/SystemFolder/QuickTime/PictureViewer/PictureViewer.d.ts +12 -0
- package/SystemFolder/QuickTime/PictureViewer/PictureViewerContext.d.ts +9 -0
- package/SystemFolder/SystemResources/AboutWindow/ClassicyAboutWindow.d.ts +12 -0
- package/SystemFolder/SystemResources/App/ClassicyApp.d.ts +13 -0
- package/SystemFolder/SystemResources/App/ClassicyAppUtils.d.ts +20 -0
- package/SystemFolder/SystemResources/Boot/ClassicyBoot.d.ts +3 -0
- package/SystemFolder/SystemResources/Button/ClassicyButton.d.ts +12 -0
- package/SystemFolder/SystemResources/Checkbox/ClassicyCheckbox.d.ts +12 -0
- package/SystemFolder/SystemResources/ContextualMenu/ClassicyContextualMenu.d.ts +11 -0
- package/SystemFolder/SystemResources/ControlGroup/ClassicyControlGroup.d.ts +9 -0
- package/SystemFolder/SystemResources/ControlLabel/ClassicyControlLabel.d.ts +17 -0
- package/SystemFolder/SystemResources/DatePicker/ClassicyDatePicker.d.ts +14 -0
- package/SystemFolder/SystemResources/DatePicker/ClassicyDatePickerUtils.d.ts +2 -0
- package/SystemFolder/SystemResources/Desktop/ClassicyDesktop.d.ts +8 -0
- package/SystemFolder/SystemResources/Desktop/ClassicyDesktopIcon.d.ts +14 -0
- package/SystemFolder/SystemResources/Desktop/ClassicyDesktopIconContext.d.ts +4 -0
- package/SystemFolder/SystemResources/Desktop/ClassicyDesktopManager.d.ts +29 -0
- package/SystemFolder/SystemResources/Desktop/ClassicyDesktopWindowManagerContext.d.ts +3 -0
- package/SystemFolder/SystemResources/Desktop/MenuBar/ClassicyDesktopMenuBar.d.ts +4 -0
- package/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Sound/ClassicyDesktopMenuWidgetSound.d.ts +8 -0
- package/SystemFolder/SystemResources/Desktop/MenuBar/Widgets/Time/ClassicyDesktopMenuWidgetTime.d.ts +4 -0
- package/SystemFolder/SystemResources/Disclosure/ClassicyDisclosure.d.ts +10 -0
- package/SystemFolder/SystemResources/File/ClassicyFileBrowser.d.ts +12 -0
- package/SystemFolder/SystemResources/File/ClassicyFileBrowserUtils.d.ts +6 -0
- package/SystemFolder/SystemResources/File/ClassicyFileBrowserViewIcons.d.ts +11 -0
- package/SystemFolder/SystemResources/File/ClassicyFileBrowserViewTable.d.ts +14 -0
- package/SystemFolder/SystemResources/File/ClassicyFileSystem.d.ts +28 -0
- package/SystemFolder/SystemResources/File/ClassicyFileSystemModel.d.ts +36 -0
- package/SystemFolder/SystemResources/File/DefaultClassicyFileSystem.d.ts +93 -0
- package/SystemFolder/SystemResources/Icon/ClassicyIcon.d.ts +14 -0
- package/SystemFolder/SystemResources/Input/ClassicyInput.d.ts +15 -0
- package/SystemFolder/SystemResources/Menu/ClassicyMenu.d.ts +29 -0
- package/SystemFolder/SystemResources/PopUpMenu/ClassicyPopUpMenu.d.ts +18 -0
- package/SystemFolder/SystemResources/ProgressBar/ClassicyProgressBar.d.ts +1 -0
- package/SystemFolder/SystemResources/QuickTime/QuickTimeMovieEmbed.d.ts +16 -0
- package/SystemFolder/SystemResources/QuickTime/QuickTimeUtils.d.ts +2 -0
- package/SystemFolder/SystemResources/RadioInput/ClassicyRadioInput.d.ts +20 -0
- package/SystemFolder/SystemResources/RichTextEditor/ClassicyRichTextEditor.d.ts +9 -0
- package/SystemFolder/SystemResources/Tabs/ClassicyTabs.d.ts +11 -0
- package/SystemFolder/SystemResources/TextEditor/ClassicyTextEditor.d.ts +1 -0
- package/SystemFolder/SystemResources/TimePicker/ClassicyTimePicker.d.ts +15 -0
- package/SystemFolder/SystemResources/Window/ClassicyWindow.d.ts +29 -0
- package/SystemFolder/SystemResources/Window/ClassicyWindowContext.d.ts +18 -0
- package/assets/img/icons/control-panels/appearance-manager/app.png +0 -0
- package/assets/img/icons/control-panels/appearance-manager/platinum.png +0 -0
- package/assets/img/icons/control-panels/date-time-manager/date-time-manager.png +0 -0
- package/assets/img/icons/control-panels/sound-manager/app.png +0 -0
- package/assets/img/icons/control-panels/sound-manager/sound-33.png +0 -0
- package/assets/img/icons/control-panels/sound-manager/sound-66.png +0 -0
- package/assets/img/icons/control-panels/sound-manager/sound-off.png +0 -0
- package/assets/img/icons/control-panels/sound-manager/sound-on.png +0 -0
- package/assets/img/icons/system/apple.png +0 -0
- package/assets/img/icons/system/drives/disk.png +0 -0
- package/assets/img/icons/system/files/file.png +0 -0
- package/assets/img/icons/system/folders/directory.png +0 -0
- package/assets/img/icons/system/mac.png +0 -0
- package/assets/img/icons/system/macos.png +0 -0
- package/assets/img/icons/system/quicktime/cc.png +0 -0
- package/assets/img/icons/system/quicktime/movie.png +0 -0
- package/assets/img/icons/system/quicktime/player.png +0 -0
- package/assets/img/wallpapers/azul_dark.png +0 -0
- package/assets/img/wallpapers/azul_extra_light.png +0 -0
- package/assets/img/wallpapers/azul_light.png +0 -0
- package/assets/img/wallpapers/bondi.png +0 -0
- package/assets/img/wallpapers/bondi_dark.png +0 -0
- package/assets/img/wallpapers/bondi_extra_dark.png +0 -0
- package/assets/img/wallpapers/bondi_light.png +0 -0
- package/assets/img/wallpapers/bondi_medium.png +0 -0
- package/assets/img/wallpapers/bossanova_bondi.png +0 -0
- package/assets/img/wallpapers/bossanova_poppy.png +0 -0
- package/assets/img/wallpapers/bossanova_poppy_2.png +0 -0
- package/assets/img/wallpapers/bubbles_bondi.png +0 -0
- package/assets/img/wallpapers/bubbles_poppy.png +0 -0
- package/assets/img/wallpapers/candy_bar.png +0 -0
- package/assets/img/wallpapers/candy_bar_azul.png +0 -0
- package/assets/img/wallpapers/candy_bar_pistachio.png +0 -0
- package/assets/img/wallpapers/candy_bar_sunny.png +0 -0
- package/assets/img/wallpapers/default.png +0 -0
- package/assets/img/wallpapers/diagonals_bondi.png +0 -0
- package/assets/img/wallpapers/diagonals_bondi_dark.png +0 -0
- package/assets/img/wallpapers/diagonals_poppy.png +0 -0
- package/assets/img/wallpapers/flat_peanuts.png +0 -0
- package/assets/img/wallpapers/flat_peanuts_poppy.png +0 -0
- package/assets/img/wallpapers/french_blue_dark.png +0 -0
- package/assets/img/wallpapers/french_blue_light.png +0 -0
- package/assets/img/wallpapers/macos.png +0 -0
- package/assets/img/wallpapers/peanuts_azul.png +0 -0
- package/assets/img/wallpapers/peanuts_pistachio.png +0 -0
- package/assets/img/wallpapers/pistachio_dark.png +0 -0
- package/assets/img/wallpapers/pistachio_light.png +0 -0
- package/assets/img/wallpapers/pistachio_medium.png +0 -0
- package/assets/img/wallpapers/poppy.png +0 -0
- package/assets/img/wallpapers/poppy_dark.png +0 -0
- package/assets/img/wallpapers/poppy_light.png +0 -0
- package/assets/img/wallpapers/poppy_medium.png +0 -0
- package/assets/img/wallpapers/rio_azul.png +0 -0
- package/assets/img/wallpapers/rio_pistachio.png +0 -0
- package/assets/img/wallpapers/ripple_azul.png +0 -0
- package/assets/img/wallpapers/ripple_bondi.png +0 -0
- package/assets/img/wallpapers/ripple_poppy.png +0 -0
- package/assets/img/wallpapers/sunny.png +0 -0
- package/assets/img/wallpapers/sunny_dark.png +0 -0
- package/assets/img/wallpapers/sunny_light.png +0 -0
- package/assets/img/wallpapers/waves_azul.png +0 -0
- package/assets/img/wallpapers/waves_bondi.png +0 -0
- package/assets/img/wallpapers/waves_sunny.png +0 -0
- package/e7dead02eb942a2c597f.svg +49 -0
- package/index.d.ts +57 -0
- package/index.js +1 -1
- package/index.js.LICENSE.txt +86 -0
- package/package.json +2 -8
package/771.index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 771.index.js.LICENSE.txt */
|
|
2
|
+
export const __webpack_id__=771;export const __webpack_ids__=[771];export const __webpack_modules__={3653:(t,e,i)=>{i.r(e),i.d(e,{default:()=>g});var n=i(6540);const s=/open\.spotify\.com\/(\w+)\/(\w+)/i;function o(t,e={}){return`\n <style>\n :host {\n display: inline-block;\n min-width: 160px;\n min-height: 80px;\n position: relative;\n }\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n :host(:not([controls])) {\n display: none !important;\n }\n </style>\n <iframe${function(t){let e="";for(const i in t){const n=t[i];e+=""===n?` ${i}`:` ${i}="${n}"`}return e}({src:r(t,e),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"})}></iframe>\n `}function r(t,e){var i,n,o;if(!t.src)return;const r=t.src.match(s),a=r&&r[1],d=r&&r[2],l={t:null==(i=e.config)?void 0:i.startAt,theme:"dark"===(null==(n=e.config)?void 0:n.theme)?"0":null};return`https://open.spotify.com/embed/${a}/${d}${(null==(o=e.config)?void 0:o.preferVideo)?"/video":""}?${function(t){return String(new URLSearchParams(function(t){let e={};for(let i in t){let n=t[i];!0===n||""===n?e[i]=1:!1===n?e[i]=0:null!=n&&(e[i]=n)}return e}(t)))}(l)}`}class a extends(globalThis.HTMLElement??class{}){static getTemplateHTML=o;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new u;#t;#e;#i;#n=!1;#s=!1;#o=!0;#r=0;#a=NaN;#d=!1;#l=null;constructor(){super(),this.#u("config")}async load(){var t,e,i;if(this.#t)return;this.#e&&(this.loadComplete=new u),this.#e=!0,await(this.#t=Promise.resolve()),this.#t=null,this.#n=!1,this.#s=!1,this.#r=0,this.#a=NaN,this.#d=!1,this.dispatchEvent(new Event("emptied"));let n=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const s={t:null==(t=this.config)?void 0:t.startAt,theme:"dark"===(null==(e=this.config)?void 0:e.theme)?"0":null,preferVideo:null==(i=this.config)?void 0:i.preferVideo};if(this.#i)this.api=n,this.api.iframeElement.src=r(d(this.attributes),this);else{this.#i=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=o(d(this.attributes),this));let t=this.shadowRoot.querySelector("iframe");const e=await async function(t,e,i){return l[t]?l[t]:e&&self[e]?Promise.resolve(self[e]):l[t]=new Promise(function(e,n){const s=document.createElement("script");s.src=t;const o=t=>e(t);i&&(self[i]=o),s.onload=()=>!1,s.onerror=n,document.head.append(s)})}("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(i=>e.createController(t,s,i)),this.api.iframeElement=t,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",t=>this.#s&&this.#o&&(t.data.isBuffering||!t.data.isPaused)?(this.#s=!1,void(this.currentTime=1)):(t.data.duration/1e3!==this.#a&&(this.#s=!1,this.#a=t.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),t.data.position/1e3!==this.#r&&(this.#d=!1,this.#s=!1,this.#r=t.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),this.#n||this.#o||!t.data.isPaused?!this.#o||!t.data.isBuffering&&t.data.isPaused?this.#n&&!t.data.isPaused?(this.#n=!1,void this.dispatchEvent(new Event("playing"))):!this.paused&&!this.seeking&&!this.#s&&Math.ceil(this.currentTime)>=this.duration?(this.#s=!0,this.loop?void(this.currentTime=1):void(this.continuous||(this.pause(),this.dispatchEvent(new Event("ended"))))):void 0:(this.#o=!1,this.dispatchEvent(new Event("play")),this.#n=t.data.isBuffering,void(this.#n?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing")))):(this.#o=!0,void this.dispatchEvent(new Event("pause")))))}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,e,i){e!==i&&("src"!==t||this.load())}async play(){var t;return this.#o=!1,this.#n=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,null==(t=this.api)?void 0:t.resume()}async pause(){var t;return await this.loadComplete,null==(t=this.api)?void 0:t.pause()}get config(){return this.#l}set config(t){this.#l=t}get paused(){return this.#o??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#d}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",Boolean(t))}get currentTime(){return this.#r}set currentTime(t){if(this.currentTime==t)return;this.#d=!0;let e=this.#r;this.#r=t,this.dispatchEvent(new Event("timeupdate")),this.#r=e,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.seek(t)})}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#u(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}}function d(t){let e={};for(let i of t)e[i.name]=i.value;return e}const l={};class u extends Promise{constructor(t=()=>{}){let e,i;super((n,s)=>{t(n,s),e=n,i=s}),this.resolve=e,this.reject=i}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",a);var c=a,h=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),p={className:"class",htmlFor:"for"};function f(t){return t.toLowerCase()}function m(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t||"object"==typeof t&&null!==t?void 0:t}function v(t,e,i){var n;t[e]=i,null==i&&e in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&t.removeAttribute(e)}var g=function({react:t,tagName:e,elementClass:i,events:n,displayName:s,defaultProps:o,toAttributeName:r=f,toAttributeValue:a=m}){const d=Number.parseInt(t.version)>=19,l=t.forwardRef((s,l)=>{var u,c;const f=t.useRef(null),g=t.useRef(new Map),w={},E={},y={},T={};for(const[t,e]of Object.entries(s)){if(h.has(t)){y[t]=e;continue}const n=r(p[t]??t);if(t in i.prototype&&!(t in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(c=i.observedAttributes)?void 0:c.some(t=>t===n))){T[t]=e;continue}if(t.startsWith("on")){w[t]=e;continue}const s=a(e);if(n&&null!=s&&(E[n]=String(s),d||(y[n]=s)),n&&d){const t=m(e);y[n]=s!==t?s:e}}if("undefined"!=typeof window){for(const e in w){const i=w[e],s=e.endsWith("Capture"),o=((null==n?void 0:n[e])??e.slice(2).toLowerCase()).slice(0,s?-7:void 0);t.useLayoutEffect(()=>{const t=null==f?void 0:f.current;if(t&&"function"==typeof i)return t.addEventListener(o,i,s),()=>{t.removeEventListener(o,i,s)}},[null==f?void 0:f.current,i])}t.useLayoutEffect(()=>{if(null===f.current)return;const t=new Map;for(const e in T)v(f.current,e,T[e]),g.current.delete(e),t.set(e,T[e]);for(const[t,e]of g.current)v(f.current,t,void 0);g.current=t})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:e,delegatesFocus:n}=i.shadowRootOptions,o=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(E,s)}});y.children=[o,y.children]}return t.createElement(e,{...o,...y,ref:t.useCallback(t=>{f.current=t,"function"==typeof l?l(t):null!==l&&(l.current=t)},[l])})});return l.displayName=s??i.name,l}({react:n,tagName:"spotify-audio",elementClass:c,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":f(t)})}};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
ce-la-react/dist/ce-la-react.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*
|
|
9
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
10
|
+
*)
|
|
11
|
+
*/
|
package/85.index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 85.index.js.LICENSE.txt */
|
|
2
|
+
export const __webpack_id__=85;export const __webpack_ids__=[85];export const __webpack_modules__={3188:(e,t,o)=>{o.r(t),o.d(t,{default:()=>w});var n=o(6540);const s=/tiktok\.com\/(?:@[^/]+\/video\/)?(\d+)(?:\/([\w-]+))?/,i={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},r={[i.INIT]:"emptied",[i.PAUSED]:"pause",[i.ENDED]:"ended",[i.PLAYING]:"play",[i.BUFFERING]:"waiting"};function a(e,t={}){const o={src:l(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(o["data-config"]=JSON.stringify(t.config)),`\n <style>\n :host {\n display:inline-block;\n min-width: 300px;\n min-height: 150px;\n position: relative;\n }\n iframe {\n position:absolute;\n top:0;\n left:0;\n width:100%;\n height:100%;\n border:0;\n }\n </style>\n <iframe ${function(e){let t="";for(const o in e){const n=e[o];t+=""===n?` ${d(o)}`:` ${d(o)}="${d(`${n}`)}"`}return t}(o)} title="TikTok video"></iframe>\n `}function l(e,t={}){if(!e.src)return;const o=e.src.match(s);return`https://www.tiktok.com/player/v1/${o&&o[1]}?${function(e){return String(new URLSearchParams(function(e){let t={};for(let o in e){let n=e[o];!0===n||""===n?t[o]=1:!1===n?t[o]=0:null!=n&&(t[o]=n)}return t}(e)))}({controls:""===e.controls?null:0,autoplay:e.autoplay,muted:e.muted,loop:e.loop,rel:0,...t.config})}`}class u extends(globalThis.HTMLElement??class{}){static getTemplateHTML=a;static shadowRootOptions={mode:"open"};static get observedAttributes(){return["src","controls","loop","autoplay","muted"]}loadComplete=new c;#e;#t;#o=!1;#n=0;#s=!0;#i=null;#r=100;#a=0;#l;constructor(){super(),this.#u("config")}async load(){if(this.#e)return;this.shadowRoot||this.attachShadow(u.shadowRootOptions);const e=!this.#t;if(this.#t&&(this.loadComplete=new c),this.#t=!0,await(this.#e=Promise.resolve()),this.#e=null,this.#n=0,this.#o=!1,this.#s=!0,!this.src)return this.shadowRoot.innerHTML="",void globalThis.removeEventListener("message",this.#c);let t=this.shadowRoot.querySelector("iframe");const o=function(e){let t={};for(let o of e)t[o.name]=o.value;return t}(this.attributes);e&&t&&(this.#i=JSON.parse(t.getAttribute("data-config")||"{}")),(null==t?void 0:t.src)&&t.src===l(o,this)||(this.shadowRoot.innerHTML=a(o,this),t=this.shadowRoot.querySelector("iframe")),this.#l=t,globalThis.addEventListener("message",this.#c)}async attributeChangedCallback(e,t,o){if(t!==o)switch(e){case"muted":await this.loadComplete,this.muted=null!=o;break;case"autoplay":case"controls":case"loop":case"src":return void this.load()}}get config(){return this.#i}set config(e){this.#i=e}#c=e=>{const t=e.data;if(null==t?void 0:t["x-tiktok-player"])switch(t.type){case"onPlayerReady":this.loadComplete.resolve();break;case"onStateChange":{this.#s=[i.INIT,i.PAUSED,i.ENDED].includes(t.value);const e=r[t.value];e&&this.dispatchEvent(new Event(e));break}case"onCurrentTime":this.#n=t.value.currentTime,this.#a=t.value.duration,this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("timeupdate"));break;case"onVolumeChange":this.#r=t.value,this.dispatchEvent(new Event("volumechange"));break;case"onMute":this.#o=!!t.value,this.#r=t.value?0:this.#r,this.dispatchEvent(new Event("volumechange"));break;case"onError":this.dispatchEvent(new Event("error"));break;default:console.warn("Unhandled TikTok player message:",t)}};#d(e,t){var o;if(!(null==(o=this.#l)?void 0:o.contentWindow))return;const n={"x-tiktok-player":!0,type:e,...void 0!==t?{value:t}:{}};this.#l.contentWindow.postMessage(n,"*")}async play(){await this.loadComplete,this.#d("play")}async pause(){await this.loadComplete,this.#d("pause")}async#h(e){await this.loadComplete,this.#d("seekTo",Number(e))}async#p(){await this.loadComplete,this.#d("mute")}async#m(){await this.loadComplete,this.#d("unMute")}get volume(){return this.#r/100}set volume(e){console.warn("Volume control is not supported for TikTok videos.")}get currentTime(){return this.#n}set currentTime(e){this.#h(e)}get muted(){return this.#o}set muted(e){this.#o=e,e?this.#p():this.#m()}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get paused(){return this.#s}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e??"")}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}}class c extends Promise{constructor(e=()=>{}){let t,o;super((n,s)=>{e(n,s),t=n,o=s}),this.resolve=t,this.reject=o}}function d(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}globalThis.customElements&&!globalThis.customElements.get("tiktok-video")&&globalThis.customElements.define("tiktok-video",u);var h=u,p=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),m={className:"class",htmlFor:"for"};function f(e){return e.toLowerCase()}function v(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function g(e,t,o){var n;e[t]=o,null==o&&t in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&e.removeAttribute(t)}var w=function({react:e,tagName:t,elementClass:o,events:n,displayName:s,defaultProps:i,toAttributeName:r=f,toAttributeValue:a=v}){const l=Number.parseInt(e.version)>=19,u=e.forwardRef((s,u)=>{var c,d;const h=e.useRef(null),f=e.useRef(new Map),w={},y={},b={},T={};for(const[e,t]of Object.entries(s)){if(p.has(e)){b[e]=t;continue}const n=r(m[e]??e);if(e in o.prototype&&!(e in((null==(c=globalThis.HTMLElement)?void 0:c.prototype)??{}))&&!(null==(d=o.observedAttributes)?void 0:d.some(e=>e===n))){T[e]=t;continue}if(e.startsWith("on")){w[e]=t;continue}const s=a(t);if(n&&null!=s&&(y[n]=String(s),l||(b[n]=s)),n&&l){const e=v(t);b[n]=s!==e?s:t}}if("undefined"!=typeof window){for(const t in w){const o=w[t],s=t.endsWith("Capture"),i=((null==n?void 0:n[t])??t.slice(2).toLowerCase()).slice(0,s?-7:void 0);e.useLayoutEffect(()=>{const e=null==h?void 0:h.current;if(e&&"function"==typeof o)return e.addEventListener(i,o,s),()=>{e.removeEventListener(i,o,s)}},[null==h?void 0:h.current,o])}e.useLayoutEffect(()=>{if(null===h.current)return;const e=new Map;for(const t in T)g(h.current,t,T[t]),f.current.delete(t),e.set(t,T[t]);for(const[e,t]of f.current)g(h.current,e,void 0);f.current=e})}if("undefined"==typeof window&&(null==o?void 0:o.getTemplateHTML)&&(null==o?void 0:o.shadowRootOptions)){const{mode:t,delegatesFocus:n}=o.shadowRootOptions,i=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(y,s)}});b.children=[i,b.children]}return e.createElement(t,{...i,...b,ref:e.useCallback(e=>{h.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},[u])})});return u.displayName=s??o.name,u}({react:n,tagName:"tiktok-video",elementClass:h,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":f(e)})}};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! Bundled license information:
|
|
2
|
+
|
|
3
|
+
ce-la-react/dist/ce-la-react.js:
|
|
4
|
+
(**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*
|
|
9
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
10
|
+
*)
|
|
11
|
+
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ClassicyStoreSystemAppearanceManager } from '../../../SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearance';
|
|
2
|
+
import { ClassicyStoreSystemSoundManager } from '../../../SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerContext';
|
|
3
|
+
import { ClassicyStoreSystemDesktopManager } from '../../../SystemFolder/SystemResources/Desktop/ClassicyDesktopManager';
|
|
4
|
+
import { ClassicyMenuItem } from '../../../SystemFolder/SystemResources/Menu/ClassicyMenu';
|
|
5
|
+
export interface ClassicyStoreSystemAppManager extends ClassicyStoreSystemManager {
|
|
6
|
+
apps: Record<string, ClassicyStoreSystemApp>;
|
|
7
|
+
}
|
|
8
|
+
export interface ClassicyStoreSystemApp {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
windows: ClassicyStoreSystemAppWindow[];
|
|
13
|
+
open: boolean;
|
|
14
|
+
data?: Record<string, any>;
|
|
15
|
+
focused?: boolean;
|
|
16
|
+
noDesktopIcon?: boolean;
|
|
17
|
+
debug?: boolean;
|
|
18
|
+
openOnBoot?: boolean;
|
|
19
|
+
options?: Record<string, any>[];
|
|
20
|
+
appMenu?: ClassicyMenuItem[];
|
|
21
|
+
}
|
|
22
|
+
export interface ClassicyStoreSystemAppWindow {
|
|
23
|
+
closed: boolean;
|
|
24
|
+
id: string;
|
|
25
|
+
appId?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
size: [number, number];
|
|
29
|
+
position: [number, number];
|
|
30
|
+
minimumSize: [number, number];
|
|
31
|
+
focused?: boolean;
|
|
32
|
+
default?: boolean;
|
|
33
|
+
resizing?: boolean;
|
|
34
|
+
zoomed?: boolean;
|
|
35
|
+
collapsed?: boolean;
|
|
36
|
+
dragging?: boolean;
|
|
37
|
+
moving?: boolean;
|
|
38
|
+
modal?: boolean;
|
|
39
|
+
menuBar?: ClassicyMenuItem[];
|
|
40
|
+
contextMenu?: ClassicyMenuItem[];
|
|
41
|
+
showContextMenu?: boolean;
|
|
42
|
+
options?: Record<string, any>[];
|
|
43
|
+
}
|
|
44
|
+
export interface ClassicyStore {
|
|
45
|
+
System: ClassicyStoreSystem;
|
|
46
|
+
Resource?: {
|
|
47
|
+
App: Record<string, any>;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ClassicyStoreSystem {
|
|
51
|
+
Manager: {
|
|
52
|
+
Desktop: ClassicyStoreSystemDesktopManager;
|
|
53
|
+
Sound: ClassicyStoreSystemSoundManager;
|
|
54
|
+
App: ClassicyStoreSystemAppManager;
|
|
55
|
+
Appearance: ClassicyStoreSystemAppearanceManager;
|
|
56
|
+
DateAndTime: ClassicyStoreSystemDateAndTimeManager;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export interface ClassicyStoreSystemDateAndTimeManager extends ClassicyStoreSystemManager {
|
|
60
|
+
dateTime: string;
|
|
61
|
+
timeZoneOffset: string;
|
|
62
|
+
militaryTime: boolean;
|
|
63
|
+
displaySeconds: boolean;
|
|
64
|
+
displayPeriod: boolean;
|
|
65
|
+
displayDay: boolean;
|
|
66
|
+
displayLongDay: boolean;
|
|
67
|
+
flashSeparators: boolean;
|
|
68
|
+
show: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ClassicyStoreSystemManager {
|
|
71
|
+
}
|
|
72
|
+
export declare class ClassicyAppManagerHandler {
|
|
73
|
+
getAppIndex(ds: ClassicyStore, appId: string): ClassicyStoreSystemApp;
|
|
74
|
+
deFocusApps(ds: ClassicyStore): ClassicyStore;
|
|
75
|
+
focusApp(ds: ClassicyStore, appId: string): void;
|
|
76
|
+
openApp(ds: ClassicyStore, appId: string, appName: string, appIcon: string): void;
|
|
77
|
+
loadApp(ds: ClassicyStore, appId: string, appName: string, appIcon: string): void;
|
|
78
|
+
closeApp(ds: ClassicyStore, appId: string): void;
|
|
79
|
+
activateApp(ds: ClassicyStore, appId: string): void;
|
|
80
|
+
}
|
|
81
|
+
export type ActionMessage = Record<string, any> & {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const classicyAppEventHandler: (ds: ClassicyStore, action: ActionMessage) => ClassicyStore;
|
|
85
|
+
export declare const classicyDesktopStateEventReducer: (ds: ClassicyStore, action: ActionMessage) => {
|
|
86
|
+
System: ClassicyStoreSystem;
|
|
87
|
+
Resource?: {
|
|
88
|
+
App: Record<string, any>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export declare const DefaultAppManagerState: ClassicyStore;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClassicyStore } from './ClassicyAppManager';
|
|
3
|
+
type ClassicyAppManagerProviderProps = {
|
|
4
|
+
gaMeasurementIds?: string[];
|
|
5
|
+
gtmContainerId?: string;
|
|
6
|
+
appName?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const ClassicyAppManagerProvider: React.FC<React.PropsWithChildren<ClassicyAppManagerProviderProps>>;
|
|
9
|
+
export declare function useAppManager(): ClassicyStore;
|
|
10
|
+
export declare function useAppManagerDispatch(): React.Dispatch<any>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ClassicyStoreSystemManager } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
2
|
+
import { ClassicyThemeSound } from '../../../SystemFolder/ControlPanels/SoundManager/ClassicySoundManagerContext';
|
|
3
|
+
export interface ClassicyStoreSystemAppearanceManager extends ClassicyStoreSystemManager {
|
|
4
|
+
availableThemes?: ClassicyTheme[];
|
|
5
|
+
activeTheme: ClassicyTheme;
|
|
6
|
+
}
|
|
7
|
+
export type ClassicyThemeColorPalette = [number, number, number, number, number, number, number];
|
|
8
|
+
export type ClassicyThemeColorsWindow = {
|
|
9
|
+
border: number;
|
|
10
|
+
borderOutset: number;
|
|
11
|
+
borderInset: number;
|
|
12
|
+
frame: number;
|
|
13
|
+
title: number;
|
|
14
|
+
document: number;
|
|
15
|
+
};
|
|
16
|
+
export type ClassicyThemeColors = {
|
|
17
|
+
outline: number;
|
|
18
|
+
select: number;
|
|
19
|
+
highlight: number;
|
|
20
|
+
black: number;
|
|
21
|
+
white: number;
|
|
22
|
+
alert: number;
|
|
23
|
+
error: number;
|
|
24
|
+
system: ClassicyThemeColorPalette;
|
|
25
|
+
theme: ClassicyThemeColorPalette;
|
|
26
|
+
window: ClassicyThemeColorsWindow;
|
|
27
|
+
};
|
|
28
|
+
export type ClassicyThemeTypography = {
|
|
29
|
+
ui: string;
|
|
30
|
+
uiSize: number;
|
|
31
|
+
header: string;
|
|
32
|
+
headerSize: number;
|
|
33
|
+
body: string;
|
|
34
|
+
bodySize: number;
|
|
35
|
+
};
|
|
36
|
+
export type ClassicyThemeMeasurementsWindow = {
|
|
37
|
+
borderSize: number;
|
|
38
|
+
controlSize: number;
|
|
39
|
+
paddingSize: number;
|
|
40
|
+
scrollbarSize: number;
|
|
41
|
+
};
|
|
42
|
+
export type ClassicyThemeMeasurements = {
|
|
43
|
+
window: ClassicyThemeMeasurementsWindow;
|
|
44
|
+
};
|
|
45
|
+
export type ClassicyThemeDesktop = {
|
|
46
|
+
iconSize: number;
|
|
47
|
+
iconFontSize: number;
|
|
48
|
+
backgroundImage: string;
|
|
49
|
+
backgroundColor: number;
|
|
50
|
+
backgroundSize: number | string;
|
|
51
|
+
backgroundRepeat: string;
|
|
52
|
+
backgroundPosition: string | number;
|
|
53
|
+
};
|
|
54
|
+
export type ClassicyTheme = {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
color: ClassicyThemeColors;
|
|
58
|
+
typography: ClassicyThemeTypography;
|
|
59
|
+
measurements: ClassicyThemeMeasurements;
|
|
60
|
+
desktop: ClassicyThemeDesktop;
|
|
61
|
+
sound: ClassicyThemeSound;
|
|
62
|
+
};
|
|
63
|
+
export declare const getThemeVars: (theme: ClassicyTheme) => {
|
|
64
|
+
'--color-black': string;
|
|
65
|
+
'--color-white': string;
|
|
66
|
+
'--color-alert': string;
|
|
67
|
+
'--color-error': string;
|
|
68
|
+
'--color-system-01': string;
|
|
69
|
+
'--color-system-02': string;
|
|
70
|
+
'--color-system-03': string;
|
|
71
|
+
'--color-system-04': string;
|
|
72
|
+
'--color-system-05': string;
|
|
73
|
+
'--color-system-06': string;
|
|
74
|
+
'--color-system-07': string;
|
|
75
|
+
'--color-theme-01': string;
|
|
76
|
+
'--color-theme-02': string;
|
|
77
|
+
'--color-theme-03': string;
|
|
78
|
+
'--color-theme-04': string;
|
|
79
|
+
'--color-theme-05': string;
|
|
80
|
+
'--color-theme-06': string;
|
|
81
|
+
'--color-theme-07': string;
|
|
82
|
+
'--window-control-size': string;
|
|
83
|
+
'--window-border-size': string;
|
|
84
|
+
'--window-padding-size': string;
|
|
85
|
+
'--window-scrollbar-size': string;
|
|
86
|
+
'--desktop-icon-size': string;
|
|
87
|
+
'--desktop-icon-font-size': string;
|
|
88
|
+
'--header-font': string;
|
|
89
|
+
'--header-font-size': string;
|
|
90
|
+
'--body-font': string;
|
|
91
|
+
'--body-font-size': string;
|
|
92
|
+
'--ui-font': string;
|
|
93
|
+
'--ui-font-size': string;
|
|
94
|
+
'--color-window-border': string;
|
|
95
|
+
'--color-window-border-outset': string;
|
|
96
|
+
'--color-window-border-inset': string;
|
|
97
|
+
'--color-window-frame': string;
|
|
98
|
+
'--color-window-title': string;
|
|
99
|
+
'--color-window-document': string;
|
|
100
|
+
'--color-outline': string;
|
|
101
|
+
'--color-select': string;
|
|
102
|
+
'--color-highlight': string;
|
|
103
|
+
'--desktop-background-image': string;
|
|
104
|
+
'--desktop-background-color': string;
|
|
105
|
+
'--desktop-background-repeat': string;
|
|
106
|
+
'--desktop-background-position': string | number;
|
|
107
|
+
'--desktop-background-size': string;
|
|
108
|
+
};
|
|
109
|
+
export declare const getAllThemes: () => ClassicyTheme[];
|
|
110
|
+
export declare const getTheme: (theme: string, overrides?: {}) => ClassicyTheme;
|
|
111
|
+
export declare const mergeDeep: (target: Record<string, any>, ...sources: any[]) => Object;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ActionMessage, ClassicyStore } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const ClassicyDateAndTimeManager: React.FC;
|
|
4
|
+
export declare const classicyDateTimeManagerEventHandler: (ds: ClassicyStore, action: ActionMessage) => ClassicyStore;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ClassicyStoreSystemManager } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
2
|
+
import { Howl } from 'howler';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const createSoundPlayer: ({ soundData, options }: SoundPlayer) => Howl | null;
|
|
5
|
+
export declare const initialPlayer: {
|
|
6
|
+
soundPlayer: Howl | null;
|
|
7
|
+
disabled: never[];
|
|
8
|
+
labels: {
|
|
9
|
+
id: string;
|
|
10
|
+
group: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
}[];
|
|
14
|
+
volume: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const ClassicySoundManagerContext: React.Context<ClassicySoundState>;
|
|
17
|
+
export declare const ClassicySoundDispatchContext: React.Context<React.Dispatch<any>>;
|
|
18
|
+
export interface ClassicyStoreSystemSoundManager extends ClassicyStoreSystemManager {
|
|
19
|
+
volume: number;
|
|
20
|
+
labels: Record<string, {
|
|
21
|
+
group: string;
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
}>;
|
|
25
|
+
disabled: string[];
|
|
26
|
+
}
|
|
27
|
+
export type ClassicyThemeSound = {
|
|
28
|
+
file: string;
|
|
29
|
+
disabled: string[];
|
|
30
|
+
};
|
|
31
|
+
export type ClassicySoundInfo = {
|
|
32
|
+
id: string;
|
|
33
|
+
group: string;
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
type ClassicySoundState = {
|
|
38
|
+
soundPlayer: Howl | null;
|
|
39
|
+
disabled: string[];
|
|
40
|
+
labels: ClassicySoundInfo[];
|
|
41
|
+
volume?: number;
|
|
42
|
+
};
|
|
43
|
+
declare enum ClassicySoundActionTypes {
|
|
44
|
+
ClassicySoundStop = 0,
|
|
45
|
+
ClassicySoundPlay = 1,
|
|
46
|
+
ClassicySoundPlayInterrupt = 2,
|
|
47
|
+
ClassicySoundPlayError = 3,
|
|
48
|
+
ClassicySoundLoad = 4,
|
|
49
|
+
ClassicySoundSet = 5,
|
|
50
|
+
ClassicySoundDisable = 6,
|
|
51
|
+
ClassicySoundDisableOne = 7,
|
|
52
|
+
ClassicySoundEnableOne = 8,
|
|
53
|
+
ClassicyVolumeSet = 9
|
|
54
|
+
}
|
|
55
|
+
interface ClassicySoundAction {
|
|
56
|
+
type: ClassicySoundActionTypes;
|
|
57
|
+
sound?: string;
|
|
58
|
+
file?: SoundData;
|
|
59
|
+
disabled?: string | string[];
|
|
60
|
+
enabled?: string | string[];
|
|
61
|
+
soundPlayer?: any;
|
|
62
|
+
}
|
|
63
|
+
interface SoundData {
|
|
64
|
+
src: string[];
|
|
65
|
+
sprite: Record<string, any>;
|
|
66
|
+
}
|
|
67
|
+
interface SoundPlayer {
|
|
68
|
+
soundData: SoundData;
|
|
69
|
+
options?: Record<string, any>;
|
|
70
|
+
}
|
|
71
|
+
export declare const loadSoundTheme: (soundTheme: SoundData) => Howl | null;
|
|
72
|
+
export declare function useSound(): ClassicySoundState;
|
|
73
|
+
export declare function useSoundDispatch(): React.Dispatch<any>;
|
|
74
|
+
export declare const ClassicySoundStateEventReducer: (ss: ClassicySoundState, action: ClassicySoundAction) => ClassicySoundState;
|
|
75
|
+
export declare const ClassicySoundManagerProvider: React.FC<{
|
|
76
|
+
children: any;
|
|
77
|
+
}>;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type QuickTimeMovieDocument = {
|
|
3
|
+
url: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: 'audio' | 'video';
|
|
6
|
+
icon?: string;
|
|
7
|
+
options?: Record<string, any>;
|
|
8
|
+
subtitlesUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const MoviePlayerAppInfo: {
|
|
11
|
+
name: string;
|
|
12
|
+
id: string;
|
|
13
|
+
icon: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const MoviePlayer: React.FC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassicyStore } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
2
|
+
export type ClassicyQuickTimeDocument = {
|
|
3
|
+
url: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
options?: any;
|
|
6
|
+
icon?: string;
|
|
7
|
+
type?: 'video' | 'audio' | 'image';
|
|
8
|
+
};
|
|
9
|
+
type classicyQuickTimeEvent = {
|
|
10
|
+
type: string;
|
|
11
|
+
document?: ClassicyQuickTimeDocument;
|
|
12
|
+
documents?: ClassicyQuickTimeDocument[];
|
|
13
|
+
};
|
|
14
|
+
export declare const classicyQuickTimeMoviePlayerEventHandler: (ds: ClassicyStore, action: classicyQuickTimeEvent) => ClassicyStore;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type QuickTimeImageDocument = {
|
|
3
|
+
url: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const PictureViewerAppInfo: {
|
|
8
|
+
name: string;
|
|
9
|
+
id: string;
|
|
10
|
+
icon: any;
|
|
11
|
+
};
|
|
12
|
+
export declare const QuickTimePictureViewer: React.FC;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClassicyStore } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
2
|
+
import { ClassicyQuickTimeDocument } from '../../../SystemFolder/QuickTime/MoviePlayer/MoviePlayerContext';
|
|
3
|
+
type classicyQuickTimeEvent = {
|
|
4
|
+
type: string;
|
|
5
|
+
document?: ClassicyQuickTimeDocument;
|
|
6
|
+
documents?: ClassicyQuickTimeDocument[];
|
|
7
|
+
};
|
|
8
|
+
export declare const classicyQuickTimePictureViewerEventHandler: (ds: ClassicyStore, action: classicyQuickTimeEvent) => ClassicyStore;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './ClassicyAboutWindow.scss';
|
|
2
|
+
import { ClassicyMenuItem } from '../../../SystemFolder/SystemResources/Menu/ClassicyMenu';
|
|
3
|
+
import React from "react";
|
|
4
|
+
export type ClassicyAboutWindowProps = {
|
|
5
|
+
appId: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
appIcon: string;
|
|
8
|
+
hideFunc: any;
|
|
9
|
+
appMenu?: ClassicyMenuItem[];
|
|
10
|
+
};
|
|
11
|
+
export declare const ClassicyAboutWindow: React.FC<ClassicyAboutWindowProps>;
|
|
12
|
+
export declare const getClassicyAboutWindow: (props: ClassicyAboutWindowProps) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ClassicyAppProps {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
defaultWindow?: string;
|
|
7
|
+
noDesktopIcon?: boolean;
|
|
8
|
+
addSystemMenu?: boolean;
|
|
9
|
+
debug?: boolean;
|
|
10
|
+
openOnBoot?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const ClassicyApp: React.FC<ClassicyAppProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const quitAppHelper: (appId: string, appName: string, appIcon: string) => {
|
|
2
|
+
type: string;
|
|
3
|
+
app: {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const quitMenuItemHelper: (appId: string, appName: string, appIcon: string) => {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
event: string;
|
|
13
|
+
eventData: {
|
|
14
|
+
app: {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './ClassicyButton.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ClassicyButtonProps = React.PropsWithChildren<{
|
|
4
|
+
isDefault?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onClickFunc?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
buttonShape?: 'rectangle' | 'square';
|
|
8
|
+
buttonSize?: 'medium' | 'small';
|
|
9
|
+
buttonType?: 'button' | 'submit' | 'reset';
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ClassicyButton: React.FC<ClassicyButtonProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './ClassicyCheckbox.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ClassicyCheckboxProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
mixed?: boolean;
|
|
7
|
+
isDefault?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onClickFunc?: (checked: boolean) => void;
|
|
10
|
+
label?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ClassicyCheckbox: React.FC<ClassicyCheckboxProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './ClassicyContextualMenu.scss';
|
|
2
|
+
import { ClassicyMenuItem } from '../../../SystemFolder/SystemResources/Menu/ClassicyMenu';
|
|
3
|
+
import '@/SystemFolder/SystemResources/Menu/ClassicyMenu.scss';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
interface ClassicyMenuProps {
|
|
6
|
+
name: string;
|
|
7
|
+
position: number[];
|
|
8
|
+
menuItems: ClassicyMenuItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare const ClassicyContextualMenu: React.FC<ClassicyMenuProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './ClassicyControlGroup.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ClassicyControlGroupProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
columns?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const ClassicyControlGroup: React.FC<ClassicyControlGroupProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './ClassicyControlLabel.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ClassicyControlLabelDirections = 'left' | 'right';
|
|
4
|
+
type ClassicyControlLabelSize = 'small' | 'medium' | 'large';
|
|
5
|
+
interface ClassicyControlLabelProps {
|
|
6
|
+
labelFor?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelSize?: ClassicyControlLabelSize;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
iconSize?: string;
|
|
12
|
+
direction?: ClassicyControlLabelDirections;
|
|
13
|
+
children?: any;
|
|
14
|
+
onClickFunc?: Function;
|
|
15
|
+
}
|
|
16
|
+
export declare const ClassicyControlLabel: React.FC<ClassicyControlLabelProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './ClassicyDatePicker.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ClassicyDatePickerProps {
|
|
4
|
+
id: string;
|
|
5
|
+
inputType?: 'text';
|
|
6
|
+
onChangeFunc?: any;
|
|
7
|
+
labelTitle?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
prefillValue?: Date;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
isDefault?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ClassicyDatePicker: React.FC<ClassicyDatePickerProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './ClassicyDesktop.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import '../../ControlPanels/AppearanceManager/styles/fonts.scss';
|
|
4
|
+
interface ClassicyDesktopProps {
|
|
5
|
+
children?: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const ClassicyDesktop: React.FC<ClassicyDesktopProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './ClassicyDesktopIcon.scss';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ClassicyDesktopIconProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
appName: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
onClickFunc?: any;
|
|
10
|
+
event?: string;
|
|
11
|
+
eventData?: any;
|
|
12
|
+
}
|
|
13
|
+
export declare const ClassicyDesktopIcon: React.FC<ClassicyDesktopIconProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ClassicyTheme } from '../../../SystemFolder/ControlPanels/AppearanceManager/ClassicyAppearance';
|
|
2
|
+
import { ActionMessage, ClassicyStore } from '../../../SystemFolder/ControlPanels/AppManager/ClassicyAppManager';
|
|
3
|
+
export declare const getIconSize: (theme: ClassicyTheme) => number[];
|
|
4
|
+
export declare const classicyDesktopIconEventHandler: (ds: ClassicyStore, action: ActionMessage) => ClassicyStore;
|