UNPKG

@quick-game/cli

Version:

Command line interface for rapid qg development

25 lines 1.06 kB
// Copyright 2022 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import { ApplicationPanelTreeElement } from './ApplicationPanelTreeElement.js'; import { SharedStorageItemsView } from './SharedStorageItemsView.js'; export class SharedStorageTreeElement extends ApplicationPanelTreeElement { view; constructor(resourcesPanel, sharedStorage) { super(resourcesPanel, sharedStorage.securityOrigin, false); } static async createElement(resourcesPanel, sharedStorage) { const treeElement = new SharedStorageTreeElement(resourcesPanel, sharedStorage); treeElement.view = await SharedStorageItemsView.createView(sharedStorage); return treeElement; } get itemURL() { return 'shared-storage://'; } onselect(selectedByUser) { super.onselect(selectedByUser); this.resourcesPanel.showView(this.view); return false; } } //# sourceMappingURL=SharedStorageTreeElement.js.map