Browse Source

Moves the Home view out of the premium folder

main
Eric Amodio 2 years ago
parent
commit
10c2af777e
12 changed files with 645 additions and 645 deletions
  1. +1
    -1
      src/container.ts
  2. +0
    -0
      src/webviews/apps/home/home.html
  3. +1
    -1
      src/webviews/apps/home/home.scss
  4. +5
    -5
      src/webviews/apps/home/home.ts
  5. +5
    -5
      src/webviews/home/homeWebviewView.ts
  6. +2
    -2
      src/webviews/home/protocol.ts
  7. +2
    -2
      webpack.config.js

+ 1
- 1
src/container.ts View File

@ -52,7 +52,7 @@ import { ViewCommands } from './views/viewCommands';
import { ViewFileDecorationProvider } from './views/viewDecorationProvider';
import { WorktreesView } from './views/worktreesView';
import { VslsController } from './vsls/vsls';
import { HomeWebviewView } from './webviews/premium/home/homeWebviewView';
import { HomeWebviewView } from './webviews/home/homeWebviewView';
import { RebaseEditorProvider } from './webviews/rebase/rebaseEditor';
import { SettingsWebview } from './webviews/settings/settingsWebview';
import { WelcomeWebview } from './webviews/welcome/welcomeWebview';

src/webviews/apps/premium/home/home.html → src/webviews/apps/home/home.html View File


src/webviews/apps/premium/home/home.scss → src/webviews/apps/home/home.scss View File

@ -119,4 +119,4 @@ vscode-divider {
margin-top: 2rem;
}
@import '../../shared/codicons';
@import '../shared/codicons';

src/webviews/apps/premium/home/home.ts → src/webviews/apps/home/home.ts View File

@ -1,11 +1,11 @@
/*global window*/
import './home.scss';
import { Disposable } from 'vscode';
import { getSubscriptionTimeRemaining, SubscriptionState } from '../../../../subscription';
import { DidChangeSubscriptionNotificationType, State } from '../../../premium/home/protocol';
import { ExecuteCommandType, IpcMessage, onIpc } from '../../../protocol';
import { App } from '../../shared/appBase';
import { DOM } from '../../shared/dom';
import { getSubscriptionTimeRemaining, SubscriptionState } from '../../../subscription';
import { DidChangeSubscriptionNotificationType, State } from '../../home/protocol';
import { ExecuteCommandType, IpcMessage, onIpc } from '../../protocol';
import { App } from '../shared/appBase';
import { DOM } from '../shared/dom';
export class HomeApp extends App<State> {
private $slot1!: HTMLDivElement;

src/webviews/premium/home/homeWebviewView.ts → src/webviews/home/homeWebviewView.ts View File

@ -1,9 +1,9 @@
import { commands, Disposable, window } from 'vscode';
import type { Container } from '../../../container';
import type { SubscriptionChangeEvent } from '../../../premium/subscription/subscriptionService';
import { SyncedStorageKeys } from '../../../storage';
import type { Subscription } from '../../../subscription';
import { WebviewViewBase } from '../../webviewViewBase';
import type { Container } from '../../container';
import type { SubscriptionChangeEvent } from '../../premium/subscription/subscriptionService';
import { SyncedStorageKeys } from '../../storage';
import type { Subscription } from '../../subscription';
import { WebviewViewBase } from '../webviewViewBase';
import { DidChangeSubscriptionNotificationType, State } from './protocol';
export class HomeWebviewView extends WebviewViewBase<State> {

src/webviews/premium/home/protocol.ts → src/webviews/home/protocol.ts View File

@ -1,5 +1,5 @@
import type { Subscription } from '../../../subscription';
import { IpcNotificationType } from '../../protocol';
import type { Subscription } from '../../subscription';
import { IpcNotificationType } from '../protocol';
export interface State {
subscription: Subscription;

+ 2
- 2
webpack.config.js View File

@ -257,7 +257,7 @@ function getWebviewsConfig(mode, env) {
},
}),
new MiniCssExtractPlugin({ filename: '[name].css' }),
getHtmlPlugin('home', true, mode, env),
getHtmlPlugin('home', false, mode, env),
getHtmlPlugin('rebase', false, mode, env),
getHtmlPlugin('settings', false, mode, env),
getHtmlPlugin('welcome', false, mode, env),
@ -310,7 +310,7 @@ function getWebviewsConfig(mode, env) {
name: 'webviews',
context: basePath,
entry: {
home: './premium/home/home.ts',
home: './home/home.ts',
rebase: './rebase/rebase.ts',
settings: './settings/settings.ts',
welcome: './welcome/welcome.ts',

Loading…
Cancel
Save