mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-15 10:35:20 +01:00
[Send] Navigation Tab (#1591)
* Initial commit of send tab * update jslib (9ddec9b
->859f317
) * updated skeleton class/html * removed added space * cleaned up import groupings * Updated to use flex container and removed unnecessary scss class
This commit is contained in:
parent
c99b716b20
commit
07f5be39d8
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 9ddec9baf8b6e7de58c00744eb371dc68e1b6383
|
Subproject commit 859f317d59189d223072a406bc2d6924e1fb71bc
|
@ -1470,5 +1470,9 @@
|
|||||||
"example": "googlecom"
|
"example": "googlecom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"send": {
|
||||||
|
"message": "Send",
|
||||||
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,13 @@ import { SetPasswordComponent } from './accounts/set-password.component';
|
|||||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||||
import { SsoComponent } from './accounts/sso.component';
|
import { SsoComponent } from './accounts/sso.component';
|
||||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
|
||||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||||
|
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||||
|
|
||||||
import { PrivateModeComponent } from './private-mode.component';
|
import { PrivateModeComponent } from './private-mode.component';
|
||||||
|
import { TabsComponent } from './tabs.component';
|
||||||
|
|
||||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||||
import { ExportComponent } from './settings/export.component';
|
import { ExportComponent } from './settings/export.component';
|
||||||
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
||||||
@ -31,7 +35,7 @@ import { OptionsComponent } from './settings/options.component';
|
|||||||
import { PremiumComponent } from './settings/premium.component';
|
import { PremiumComponent } from './settings/premium.component';
|
||||||
import { SettingsComponent } from './settings/settings.component';
|
import { SettingsComponent } from './settings/settings.component';
|
||||||
import { SyncComponent } from './settings/sync.component';
|
import { SyncComponent } from './settings/sync.component';
|
||||||
import { TabsComponent } from './tabs.component';
|
|
||||||
import { AddEditComponent } from './vault/add-edit.component';
|
import { AddEditComponent } from './vault/add-edit.component';
|
||||||
import { AttachmentsComponent } from './vault/attachments.component';
|
import { AttachmentsComponent } from './vault/attachments.component';
|
||||||
import { CiphersComponent } from './vault/ciphers.component';
|
import { CiphersComponent } from './vault/ciphers.component';
|
||||||
@ -42,6 +46,8 @@ import { PasswordHistoryComponent } from './vault/password-history.component';
|
|||||||
import { ShareComponent } from './vault/share.component';
|
import { ShareComponent } from './vault/share.component';
|
||||||
import { ViewComponent } from './vault/view.component';
|
import { ViewComponent } from './vault/view.component';
|
||||||
|
|
||||||
|
import { SendComponent } from './send/send.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
@ -265,6 +271,12 @@ const routes: Routes = [
|
|||||||
canActivate: [AuthGuardService],
|
canActivate: [AuthGuardService],
|
||||||
data: { state: 'tabs_settings' },
|
data: { state: 'tabs_settings' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'send',
|
||||||
|
component: SendComponent,
|
||||||
|
canActivate: [AuthGuardService],
|
||||||
|
data: { state: 'tabs_send' },
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -25,10 +25,14 @@ import { SetPasswordComponent } from './accounts/set-password.component';
|
|||||||
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component';
|
||||||
import { TwoFactorComponent } from './accounts/two-factor.component';
|
import { TwoFactorComponent } from './accounts/two-factor.component';
|
||||||
import { SsoComponent } from './accounts/sso.component';
|
import { SsoComponent } from './accounts/sso.component';
|
||||||
import { AppComponent } from './app.component';
|
|
||||||
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
import { PasswordGeneratorHistoryComponent } from './generator/password-generator-history.component';
|
||||||
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
import { PasswordGeneratorComponent } from './generator/password-generator.component';
|
||||||
|
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
import { PrivateModeComponent } from './private-mode.component';
|
import { PrivateModeComponent } from './private-mode.component';
|
||||||
|
import { TabsComponent } from './tabs.component';
|
||||||
|
|
||||||
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
import { ExcludedDomainsComponent } from './settings/excluded-domains.component';
|
||||||
import { ExportComponent } from './settings/export.component';
|
import { ExportComponent } from './settings/export.component';
|
||||||
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
import { FolderAddEditComponent } from './settings/folder-add-edit.component';
|
||||||
@ -37,7 +41,7 @@ import { OptionsComponent } from './settings/options.component';
|
|||||||
import { PremiumComponent } from './settings/premium.component';
|
import { PremiumComponent } from './settings/premium.component';
|
||||||
import { SettingsComponent } from './settings/settings.component';
|
import { SettingsComponent } from './settings/settings.component';
|
||||||
import { SyncComponent } from './settings/sync.component';
|
import { SyncComponent } from './settings/sync.component';
|
||||||
import { TabsComponent } from './tabs.component';
|
|
||||||
import { AddEditComponent } from './vault/add-edit.component';
|
import { AddEditComponent } from './vault/add-edit.component';
|
||||||
import { AttachmentsComponent } from './vault/attachments.component';
|
import { AttachmentsComponent } from './vault/attachments.component';
|
||||||
import { CiphersComponent } from './vault/ciphers.component';
|
import { CiphersComponent } from './vault/ciphers.component';
|
||||||
@ -48,6 +52,8 @@ import { PasswordHistoryComponent } from './vault/password-history.component';
|
|||||||
import { ShareComponent } from './vault/share.component';
|
import { ShareComponent } from './vault/share.component';
|
||||||
import { ViewComponent } from './vault/view.component';
|
import { ViewComponent } from './vault/view.component';
|
||||||
|
|
||||||
|
import { SendComponent } from './send/send.component';
|
||||||
|
|
||||||
import { A11yTitleDirective } from 'jslib/angular/directives/a11y-title.directive';
|
import { A11yTitleDirective } from 'jslib/angular/directives/a11y-title.directive';
|
||||||
import { ApiActionDirective } from 'jslib/angular/directives/api-action.directive';
|
import { ApiActionDirective } from 'jslib/angular/directives/api-action.directive';
|
||||||
import { AutofocusDirective } from 'jslib/angular/directives/autofocus.directive';
|
import { AutofocusDirective } from 'jslib/angular/directives/autofocus.directive';
|
||||||
@ -205,6 +211,7 @@ registerLocaleData(localeZhTw, 'zh-TW');
|
|||||||
RegisterComponent,
|
RegisterComponent,
|
||||||
SearchCiphersPipe,
|
SearchCiphersPipe,
|
||||||
SelectCopyDirective,
|
SelectCopyDirective,
|
||||||
|
SendComponent,
|
||||||
SettingsComponent,
|
SettingsComponent,
|
||||||
ShareComponent,
|
ShareComponent,
|
||||||
StopClickDirective,
|
StopClickDirective,
|
||||||
|
@ -281,14 +281,13 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
width: 100%;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 25%;
|
flex: 1;
|
||||||
float: left;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -329,12 +328,6 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.tabs-3 {
|
|
||||||
ul li {
|
|
||||||
width: 33.33%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app-root {
|
app-root {
|
||||||
|
8
src/popup/send/send.component.html
Normal file
8
src/popup/send/send.component.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<header>
|
||||||
|
</header>
|
||||||
|
<content>
|
||||||
|
<div class="no-items">
|
||||||
|
<i class="fa fa-smile-o fa-4x"></i>
|
||||||
|
<p>Coming soon...</p>
|
||||||
|
</div>
|
||||||
|
</content>
|
35
src/popup/send/send.component.ts
Normal file
35
src/popup/send/send.component.ts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import {
|
||||||
|
Component,
|
||||||
|
NgZone,
|
||||||
|
} from '@angular/core';
|
||||||
|
|
||||||
|
import { SendView } from 'jslib/models/view/sendView';
|
||||||
|
|
||||||
|
import { SendComponent as BaseSendComponent } from 'jslib/angular/components/send/send.component';
|
||||||
|
|
||||||
|
import { EnvironmentService } from 'jslib/abstractions/environment.service';
|
||||||
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
||||||
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||||
|
import { SendService } from 'jslib/abstractions/send.service';
|
||||||
|
|
||||||
|
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-send',
|
||||||
|
templateUrl: 'send.component.html',
|
||||||
|
})
|
||||||
|
export class SendComponent extends BaseSendComponent {
|
||||||
|
constructor(sendService: SendService, i18nService: I18nService,
|
||||||
|
platformUtilsService: PlatformUtilsService, environmentService: EnvironmentService,
|
||||||
|
broadcasterService: BroadcasterService, ngZone: NgZone) {
|
||||||
|
super(sendService, i18nService, platformUtilsService, environmentService, broadcasterService, ngZone);
|
||||||
|
}
|
||||||
|
|
||||||
|
addSend() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
editSend(send: SendView) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<div class="tab-page">
|
<div class="tab-page">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
<nav class="tabs" [ngClass]="{'tabs-3': !showCurrentTab}">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li routerLinkActive="active" *ngIf="showCurrentTab">
|
<li routerLinkActive="active" *ngIf="showCurrentTab">
|
||||||
<a routerLink="current" appA11yTitle="{{'currentTab' | i18n}}">
|
<a routerLink="current" appA11yTitle="{{'currentTab' | i18n}}">
|
||||||
@ -12,6 +12,11 @@
|
|||||||
<i class="fa fa-lock fa-2x" aria-hidden="true"></i>{{'myVault' | i18n}}
|
<i class="fa fa-lock fa-2x" aria-hidden="true"></i>{{'myVault' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li routerLinkActive="active">
|
||||||
|
<a routerLink="send" appA11yTitle="{{'send' | i18n}}">
|
||||||
|
<i class="fa fa-paper-plane fa-2x" aria-hidden="true"></i>{{'send' | i18n}}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li routerLinkActive="active">
|
<li routerLinkActive="active">
|
||||||
<a routerLink="generator" appA11yTitle="{{'passGen' | i18n}}">
|
<a routerLink="generator" appA11yTitle="{{'passGen' | i18n}}">
|
||||||
<i class="fa fa-refresh fa-2x" aria-hidden="true"></i>{{'generator' | i18n}}
|
<i class="fa fa-refresh fa-2x" aria-hidden="true"></i>{{'generator' | i18n}}
|
||||||
|
Loading…
Reference in New Issue
Block a user