Commit 1a80424b authored by akiraohgaki's avatar akiraohgaki

Fix namespace

parent 672299c4
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import packageMeta from '../../../package.json';
export default class AboutDialog extends Component {
export default class AboutDialog extends Chirit.Component {
html() {
return `
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
export default class BrowsePage extends Component {
export default class BrowsePage extends Chirit.Component {
html() {
return `
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
export default class CollectionPage extends Component {
export default class CollectionPage extends Chirit.Component {
html() {
if (!this.state) {
......
const electron = require('electron');
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
export default class InstalledItemsPage extends Component {
export default class InstalledItemsPage extends Chirit.Component {
html() {
if (!this.state) {
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import StartupDialog from './StartupDialog.js';
import AboutDialog from './AboutDialog.js';
......@@ -8,7 +8,7 @@ import BrowsePage from './BrowsePage.js';
import CollectionPage from './CollectionPage.js';
import InstalledItemsPage from './InstalledItemsPage.js';
export default class Root extends Component {
export default class Root extends Chirit.Component {
html() {
return `
......
const url = require('url');
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
export default class OcsUrlDialog extends Component {
export default class OcsUrlDialog extends Chirit.Component {
html() {
if (!this.state) {
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import ToolBar from './ToolBar.js';
import StatusBar from './StatusBar.js';
import MainArea from './MainArea.js';
import SidePanel from './SidePanel.js';
export default class Root extends Component {
export default class Root extends Chirit.Component {
init() {
console.log('Component building started');
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import packageMeta from '../../../package.json';
export default class SidePanel extends Component {
export default class SidePanel extends Chirit.Component {
html() {
return `
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import packageMeta from '../../../package.json';
export default class StartupDialog extends Component {
export default class StartupDialog extends Chirit.Component {
html() {
return `
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import StatusBarItem from './StatusBarItem.js';
export default class StatusBar extends Component {
export default class StatusBar extends Chirit.Component {
init() {
this.items = {};
......
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
import Utility from '../../libs/chirit/Utility.js';
export default class StatusBarItem extends Component {
export default class StatusBarItem extends Chirit.Component {
html() {
if (!this.state) {
......@@ -125,7 +123,7 @@ export default class StatusBarItem extends Component {
&& this.element.querySelector('.statusbaritem-progress-bar')
) {
this.element.querySelector('.statusbaritem-progress-bar').value = bytesReceived / bytesTotal;
this.element.querySelector('.statusbaritem-progress-text').innerHTML = `${Utility.convertByteToHumanReadable(bytesReceived)} / ${Utility.convertByteToHumanReadable(bytesTotal)}`;
this.element.querySelector('.statusbaritem-progress-text').innerHTML = `${Chirit.Utility.convertByteToHumanReadable(bytesReceived)} / ${Chirit.Utility.convertByteToHumanReadable(bytesTotal)}`;
}
}
......
const electronStore = require('electron-store');
import Component from '../../libs/chirit/Component.js';
import Chirit from '../../libs/chirit/Chirit.js';
export default class ToolBar extends Component {
export default class ToolBar extends Chirit.Component {
init() {
if (!this.state) {
......
......@@ -7,7 +7,8 @@ const request = require('request');
const packageMeta = require('../../../package.json');
import StateManager from '../../libs/chirit/StateManager.js';
import Chirit from '../../libs/chirit/Chirit.js';
import Root from '../components/Root.js';
{
......@@ -16,7 +17,7 @@ import Root from '../components/Root.js';
const webSocketUrl = require(path.join(remote.app.getPath('appData'), 'ocs-manager', 'application.json')).websocket_url;
const webSocket = new WebSocket(webSocketUrl);
const stateManager = new StateManager();
const stateManager = new Chirit.StateManager();
const root = new Root('[data-component="Root"]');
const mainWebview = root.mainArea.browsePage.element.querySelector('[data-webview="main"]');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment