Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mycard Mobile
Commits
c6b7cce5
Commit
c6b7cce5
authored
Aug 23, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server select
parent
9d1505fc
Pipeline
#4932
passed with stage
in 5 minutes and 55 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
1 deletion
+54
-1
src/app/app.module.ts
src/app/app.module.ts
+3
-1
src/app/server-select/server-select.component.css
src/app/server-select/server-select.component.css
+20
-0
src/app/server-select/server-select.component.html
src/app/server-select/server-select.component.html
+8
-0
src/app/server-select/server-select.component.ts
src/app/server-select/server-select.component.ts
+18
-0
src/app/toolbar/toolbar.component.css
src/app/toolbar/toolbar.component.css
+4
-0
src/app/toolbar/toolbar.component.html
src/app/toolbar/toolbar.component.html
+1
-0
No files found.
src/app/app.module.ts
View file @
c6b7cce5
...
...
@@ -41,6 +41,7 @@ import * as Raven from 'raven-js';
import
{
DecksComponent
}
from
'
./decks/decks.component
'
;
import
{
ConfirmDialogComponent
}
from
'
./confirm-dialog/confirm-dialog.component
'
;
import
{
LogoutDialogComponent
}
from
'
./logout-dialog/logout-dialog.component
'
;
import
{
ServerSelectComponent
}
from
'
./server-select/server-select.component
'
;
export
class
RavenErrorHandler
implements
ErrorHandler
{
handleError
(
err
:
any
):
void
{
...
...
@@ -69,7 +70,8 @@ if (environment.production) {
ResultDialogComponent
,
DecksComponent
,
ConfirmDialogComponent
,
LogoutDialogComponent
LogoutDialogComponent
,
ServerSelectComponent
],
imports
:
[
BrowserModule
,
...
...
src/app/server-select/server-select.component.css
0 → 100644
View file @
c6b7cce5
mat-form-field
{
width
:
80px
;
}
mat-select
::ng-deep
.mat-select-arrow-wrapper
{
transform
:
initial
;
}
mat-form-field
::ng-deep
.mat-form-field-underline
{
display
:
none
;
}
mat-form-field
::ng-deep
.mat-form-field-wrapper
,
mat-form-field
::ng-deep
.mat-form-field-flex
{
padding
:
initial
;
}
mat-form-field
::ng-deep
.mat-form-field-infix
{
padding
:
initial
;
border
:
initial
;
}
src/app/server-select/server-select.component.html
0 → 100644
View file @
c6b7cce5
环境:
<mat-form-field
appearance=
'standard'
>
<!-- <mat-label>Favorite food</mat-label>-->
<mat-select>
<mat-option
*ngFor=
'let server of servers'
[value]=
'server.id'
>
{{server.name}}
</mat-option>
</mat-select>
</mat-form-field>
src/app/server-select/server-select.component.ts
0 → 100644
View file @
c6b7cce5
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-server-select
'
,
templateUrl
:
'
./server-select.component.html
'
,
styleUrls
:
[
'
./server-select.component.css
'
]
})
export
class
ServerSelectComponent
implements
OnInit
{
servers
=
[{
id
:
'
mycard
'
,
name
:
'
标准
'
},
{
id
:
'
test
'
,
name
:
'
测试
'
}];
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/toolbar/toolbar.component.css
View file @
c6b7cce5
...
...
@@ -2,3 +2,7 @@ button {
margin-left
:
-8px
;
margin-right
:
24px
;
}
span
{
flex
:
1
}
src/app/toolbar/toolbar.component.html
View file @
c6b7cce5
...
...
@@ -3,4 +3,5 @@
<mat-icon>
arrow_back
</mat-icon>
</button>
<span><ng-content></ng-content></span>
<app-server-select></app-server-select>
</mat-toolbar>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment