From e994c13ccff5bb01b6295f78a5f564e4c6d9e229 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 21 Feb 2022 00:34:41 -0500 Subject: [PATCH] Splits home view into partials --- src/webviews/apps/home/home.html | 290 +-------------------- src/webviews/apps/home/partials/links.html | 67 +++++ .../home/partials/state.free-preview-expired.html | 24 ++ .../apps/home/partials/state.free-preview.html | 26 ++ src/webviews/apps/home/partials/state.free.html | 30 +++ src/webviews/apps/home/partials/state.paid.html | 19 ++ .../home/partials/state.plus-trial-expired.html | 20 ++ .../apps/home/partials/state.plus-trial.html | 23 ++ .../apps/home/partials/state.verify-email.html | 11 + src/webviews/apps/home/partials/welcome.html | 43 +++ src/webviews/apps/settings/settings.html | 23 -- 11 files changed, 273 insertions(+), 303 deletions(-) create mode 100644 src/webviews/apps/home/partials/links.html create mode 100644 src/webviews/apps/home/partials/state.free-preview-expired.html create mode 100644 src/webviews/apps/home/partials/state.free-preview.html create mode 100644 src/webviews/apps/home/partials/state.free.html create mode 100644 src/webviews/apps/home/partials/state.paid.html create mode 100644 src/webviews/apps/home/partials/state.plus-trial-expired.html create mode 100644 src/webviews/apps/home/partials/state.plus-trial.html create mode 100644 src/webviews/apps/home/partials/state.verify-email.html create mode 100644 src/webviews/apps/home/partials/welcome.html diff --git a/src/webviews/apps/home/home.html b/src/webviews/apps/home/home.html index bf5ed1e..d32940e 100644 --- a/src/webviews/apps/home/home.html +++ b/src/webviews/apps/home/home.html @@ -19,284 +19,14 @@ - - - - - - - - - - - - - - - - - + + <%= require('html-loader?{"esModule":false}!./partials/welcome.html') %> + <%= require('html-loader?{"esModule":false}!./partials/links.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.free.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.free-preview.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.free-preview-expired.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.plus-trial.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.plus-trial-expired.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.paid.html') %> + <%= require('html-loader?{"esModule":false}!./partials/state.verify-email.html') %> diff --git a/src/webviews/apps/home/partials/links.html b/src/webviews/apps/home/partials/links.html new file mode 100644 index 0000000..859af62 --- /dev/null +++ b/src/webviews/apps/home/partials/links.html @@ -0,0 +1,67 @@ + diff --git a/src/webviews/apps/home/partials/state.free-preview-expired.html b/src/webviews/apps/home/partials/state.free-preview-expired.html new file mode 100644 index 0000000..554cd80 --- /dev/null +++ b/src/webviews/apps/home/partials/state.free-preview-expired.html @@ -0,0 +1,24 @@ + diff --git a/src/webviews/apps/home/partials/state.free-preview.html b/src/webviews/apps/home/partials/state.free-preview.html new file mode 100644 index 0000000..db76f4e --- /dev/null +++ b/src/webviews/apps/home/partials/state.free-preview.html @@ -0,0 +1,26 @@ + diff --git a/src/webviews/apps/home/partials/state.free.html b/src/webviews/apps/home/partials/state.free.html new file mode 100644 index 0000000..c553747 --- /dev/null +++ b/src/webviews/apps/home/partials/state.free.html @@ -0,0 +1,30 @@ + diff --git a/src/webviews/apps/home/partials/state.paid.html b/src/webviews/apps/home/partials/state.paid.html new file mode 100644 index 0000000..5e793a8 --- /dev/null +++ b/src/webviews/apps/home/partials/state.paid.html @@ -0,0 +1,19 @@ + diff --git a/src/webviews/apps/home/partials/state.plus-trial-expired.html b/src/webviews/apps/home/partials/state.plus-trial-expired.html new file mode 100644 index 0000000..3d3e36e --- /dev/null +++ b/src/webviews/apps/home/partials/state.plus-trial-expired.html @@ -0,0 +1,20 @@ + diff --git a/src/webviews/apps/home/partials/state.plus-trial.html b/src/webviews/apps/home/partials/state.plus-trial.html new file mode 100644 index 0000000..7e2b692 --- /dev/null +++ b/src/webviews/apps/home/partials/state.plus-trial.html @@ -0,0 +1,23 @@ + diff --git a/src/webviews/apps/home/partials/state.verify-email.html b/src/webviews/apps/home/partials/state.verify-email.html new file mode 100644 index 0000000..1a15e00 --- /dev/null +++ b/src/webviews/apps/home/partials/state.verify-email.html @@ -0,0 +1,11 @@ + diff --git a/src/webviews/apps/home/partials/welcome.html b/src/webviews/apps/home/partials/welcome.html new file mode 100644 index 0000000..2f6ac52 --- /dev/null +++ b/src/webviews/apps/home/partials/welcome.html @@ -0,0 +1,43 @@ + diff --git a/src/webviews/apps/settings/settings.html b/src/webviews/apps/settings/settings.html index da80925..4ef0feb 100644 --- a/src/webviews/apps/settings/settings.html +++ b/src/webviews/apps/settings/settings.html @@ -65,51 +65,28 @@
<%= require('html-loader?{"esModule":false}!./partials/current-line.html') %> - <%= require('html-loader?{"esModule":false}!./partials/code-lens.html') %> - <%= require('html-loader?{"esModule":false}!./partials/status-bar.html') %> - <%= require('html-loader?{"esModule":false}!./partials/hovers.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.commits.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.repositories.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.file-history.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.line-history.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.branches.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.remotes.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.stashes.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.tags.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.worktrees.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.contributors.html') %> - <%= require('html-loader?{"esModule":false}!./partials/views.searchAndCompare.html') %> - <%= require('html-loader?{"esModule":false}!./partials/blame.html') %> - <%= require('html-loader?{"esModule":false}!./partials/changes.html') %> - <%= require('html-loader?{"esModule":false}!./partials/heatmap.html') %> - <%= require('html-loader?{"esModule":false}!./partials/rebase-editor.html') %> - <%= require('html-loader?{"esModule":false}!./partials/dates.html') %> - <%= require('html-loader?{"esModule":false}!./partials/menus.html') %> - <%= require('html-loader?{"esModule":false}!./partials/shortcuts.html') %> - <%= require('html-loader?{"esModule":false}!./partials/modes.html') %>