-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from 720kb/tab-views
Tab views
- Loading branch information
Showing
37 changed files
with
1,225 additions
and
894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
div.dialog.prompt(ng-if="shell.activeLink === '4'", ng-init="topMenu.versionPackageVersion = undefined") | ||
form(ng-submit='topMenu.installVersionPackage(shell.currentSelectedPackages[0], topMenu.versionPackageVersion)') | ||
div.dialog.prompt(ng-show="showSpecificVersionPrompt && currentSelectedPackages.length === 1", ng-init="versionPackageVersion = undefined") | ||
form(ng-submit='installVersionPackage(currentSelectedPackages[0], versionPackageVersion)') | ||
input(placeholder='Package name', | ||
type='text', | ||
readonly, | ||
disabled, | ||
ng-value="shell.currentSelectedPackages[0].name") | ||
ng-value="currentSelectedPackages[0].name") | ||
= " " | ||
input(class="hide", | ||
placeholder='@version', | ||
ng-autofocus, | ||
type='text', | ||
ng-model='topMenu.versionPackageVersion', | ||
ng-value="topMenu.versionPackageVersion") | ||
ng-model='versionPackageVersion', | ||
ng-value="versionPackageVersion") | ||
= " " | ||
span(class="prompt-kind") | ||
select(name="packageVersionSelect", ng-model="topMenu.pkgVersionModel", ng-change="topMenu.versionPackageVersion = topMenu.pkgVersionModel") | ||
select(name="packageVersionSelect", ng-model="pkgVersionModel", ng-change="versionPackageVersion = pkgVersionModel") | ||
option(value="", selected) | ||
| - | ||
option(ng-repeat="pkgVersion in shell.selectedPackageViewInfos.versions | orderBy : pkgVersion : 'reverse' track by $index", ng-value="pkgVersion") | ||
option(ng-repeat="pkgVersion in selectedPackageViewInfos.versions | orderBy : pkgVersion : 'reverse' track by $index", ng-value="pkgVersion") | ||
| {{pkgVersion}} | ||
button | ||
span(ng-show="!topMenu.installingPackageVersion") | ||
button(ng-disabled="installingPackageVersion") | ||
span(ng-show="!installingPackageVersion") | ||
| Install | ||
span(ng-show="topMenu.installingPackageVersion") | ||
span(ng-show="installingPackageVersion") | ||
img(src="img/loading.svg", width="13") | ||
= " " | ||
= " " | ||
i(class="fa fa-times-circle-o button-close-prompt", ng-click="shell.activeLink = undefined;") | ||
button(class="button-close-prompt pull-right", type="button", ng-click="hideInstallVersionPrompt();") | ||
i(class="fa fa-remove") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
div.dialog.prompt(ng-if="shell.activeLink === '1'") | ||
form(ng-submit='topMenu.installPackage(topMenu.packageName, topMenu.newPackageKind)') | ||
div.dialog.prompt(ng-show="showInstallPrompt") | ||
form(ng-submit='installPackage(packageName, newPackageKind)') | ||
<!--do not remove placeholder even if it's not an input--> | ||
div(class="tags-input", ng-tag-input, ng-autofocus, ng-model="topMenu.packageName", ng-keyup="topMenu.search(topMenu.packageName[topMenu.packageName.length - 1].name)", contenteditable="true", ng-attr-disabled="{{topMenu.installingPackage ? 'disabled' : ''}}" placeholder="package<@version> ...") | ||
div(class="tags-input", ng-tag-input, tab-path-id="{{tab}}" ng-autofocus, ng-model="packageName", ng-keyup="search(packageName[packageName.length - 1].name)", contenteditable="true", ng-attr-disabled="{{installingPackage ? 'disabled' : ''}}" placeholder="package<@version> ...") | ||
<!-- this input holds search keywords, do not remove it --> | ||
input(ng-hide="true", ng-model="topMenu.searchKeywords", ng-bind="topMenu.packageName") | ||
input(ng-hide="true", ng-model="searchKeywords", ng-bind="packageName") | ||
= " " | ||
span(class="prompt-kind") | ||
input(type="checkbox", ng-model='topMenu.newPackageKind', ng-disabled='shell.globalSelected') | ||
input(type="checkbox", ng-model='newPackageKind', ng-disabled='shell.globalSelected') | ||
= " " | ||
= " " | ||
| dev | ||
= " " | ||
<!--do not remove id="" from the button--> | ||
button(id="install-new-packages-button", ng-class="{'disabled': topMenu.installingPackage || !topMenu.packageName}") | ||
span(ng-show="!topMenu.installingPackage") | ||
button(id="install-new-packages-button", ng-disabled="installingPackage || !packageName") | ||
span(ng-show="!installingPackage") | ||
| Install | ||
span(ng-show="topMenu.installingPackage") | ||
span(ng-show="installingPackage") | ||
img(src="img/loading.svg", width="13") | ||
= " " | ||
= " " | ||
i(class="fa fa-times-circle-o button-close-prompt", ng-click="shell.activeLink = undefined") | ||
.prompt-search | ||
button(class="button-close-prompt pull-right", type="button", ng-click="hideInstallPrompt();") | ||
i(class="fa fa-remove") | ||
.prompt-search(ng-hide="installingPackage") | ||
.prompt-search-content | ||
.prompt-search-item(ng-repeat="item in topMenu.searchResults.objects", ng-click="topMenu.searchChoosePackage(item.package.name)") | ||
.prompt-search-item(ng-repeat="item in searchResults.objects", ng-click="searchChoosePackage(item.package.name)") | ||
h5 | ||
| {{item.package.name}} | ||
div | ||
| {{item.package.description}} | ||
.prompt-search-loader(ng-show="topMenu.searchingNpm") | ||
.prompt-search-loader(ng-show="searchingNpm") | ||
img(src="img/loading.svg") | ||
| Loading results ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.