Eugene Pankov 8 years ago
parent
commit
64556806e6
4 changed files with 6 additions and 16 deletions
  1. 1 1
      app/src/entry.ts
  2. 1 0
      app/src/preload.scss
  3. 3 14
      app/webpack.config.js
  4. 1 1
      terminus-theme-hype/src/index.ts

+ 1 - 1
app/src/entry.ts

@@ -21,7 +21,7 @@ if ((<any>global).require('electron-is-dev')) {
 }
 
 loadPlugins((current, total) => {
-    document.querySelector('.progress .bar').style.width = 100 * current / total + '%'
+    (<HTMLElement>document.querySelector('.progress .bar')).style.width = 100 * current / total + '%'
 }).then(async plugins => {
     let module = await getRootModule(plugins)
     platformBrowserDynamic().bootstrapModule(module)

+ 1 - 0
app/src/preload.scss

@@ -2,6 +2,7 @@ $color: rgba(0, 0, 0, 0.5);
 
 
 .preload-logo {
+  -webkit-app-region: drag;
   position: fixed;
   left: 0;
   top: 0;

+ 3 - 14
app/webpack.config.js

@@ -29,14 +29,8 @@ module.exports = {
           configFileName: path.resolve(__dirname, 'tsconfig.json'),
         }
       },
-      {
-        test: /\.scss$/,
-        use: ['style-loader', 'css-loader', 'sass-loader'],
-      },
-      {
-        test: /\.css$/,
-        use: ['style-loader', 'css-loader', 'sass-loader'],
-      },
+      { test: /\.scss$/, use: ['style-loader', 'css-loader', 'sass-loader'] },
+      { test: /\.css$/, use: ['style-loader', 'css-loader', 'sass-loader'] },
       {
         test: /\.(png|svg)$/,
         loader: "file-loader",
@@ -66,10 +60,5 @@ module.exports = {
     'path': 'commonjs path',
     'rxjs': 'commonjs rxjs',
     'zone.js': 'commonjs zone.js',
-  },
-  plugins: [
-    new webpack.ProvidePlugin({
-      "window.jQuery": "jquery",
-    }),
-  ]
+  }
 }

+ 1 - 1
terminus-theme-hype/src/index.ts

@@ -6,7 +6,7 @@ import { Theme } from 'terminus-core'
 class HypeTheme extends Theme {
     name = 'Hype'
     css = require('./theme.scss')
-    terminalBackground = '#1D272D'
+    terminalBackground = '#010101'
 }