This repository was archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
upload #137
Open
michaelmattig
wants to merge
23
commits into
master
Choose a base branch
from
upload
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
upload #137
Changes from 7 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d78b478
add upload component and functionality
michaelmattig ee46592
Merge branch 'master' of https://github.com/umr-dbs/wave into upload
michaelmattig e2d60fd
prettier
michaelmattig c4343fc
use util function
michaelmattig d8c6ed2
get session only once
michaelmattig 7b114b9
clean up
michaelmattig a8cbb47
add core-new to build command
michaelmattig 248d3f5
delete unnecessary folders
ChristianBeilschmidt 1c7106c
remove codelyzer
ChristianBeilschmidt bf529c7
Merge branch 'master' of https://github.com/umr-dbs/wave into angular11
ChristianBeilschmidt 5abb2fe
update angular core and cli
ChristianBeilschmidt 53e9c54
material update
ChristianBeilschmidt 62c5bfc
update cli
ChristianBeilschmidt 2a2b5d0
clean up package.json
ChristianBeilschmidt 734dd6d
update eslint
ChristianBeilschmidt 95320f6
Merge pull request #142 from umr-dbs/angular11
michaelmattig 678728d
Merge branch 'master' of https://github.com/umr-dbs/wave into geoengine
ChristianBeilschmidt 5e3e79f
revert proxy config
michaelmattig ed83aa3
loading indicator and styling
michaelmattig 9801b46
two way binding of loading info
michaelmattig cb0127c
Merge branch 'master' of https://github.com/umr-dbs/wave into geoengine
ChristianBeilschmidt e5b7035
bugfix: remove plot removed layer streams
ChristianBeilschmidt c9c9992
Merge branch 'main' of https://github.com/geo-engine/geoengine-ui int…
michaelmattig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
58 changes: 58 additions & 0 deletions
58
projects/wave-core-new/src/lib/datasets/upload/upload.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| <wave-sidenav-header>Add Data</wave-sidenav-header> | ||
|
|
||
| <mat-card> | ||
| <mat-card-header> | ||
| <mat-card-title>Select files for upload</mat-card-title> | ||
| </mat-card-header> | ||
|
|
||
| <mat-card-content> | ||
| <input type="file" id="file" multiple (change)="selectFiles($event)" [disabled]="submittedUpload" /> | ||
| <div class="actions"> | ||
| <button type="button" mat-raised-button color="primary" (click)="upload()" [disabled]="!selectedFiles || submittedUpload"> | ||
| Upload | ||
| </button> | ||
| </div> | ||
| <mat-progress-bar *ngIf="progress$ | async as progress" mode="determinate" [value]="progress"></mat-progress-bar> | ||
| </mat-card-content> | ||
| </mat-card> | ||
|
|
||
| <mat-card *ngIf="uploadId$ | async as uploadId"> | ||
| <mat-card-header> | ||
| <mat-card-title>Specify loading information</mat-card-title> | ||
| </mat-card-header> | ||
|
|
||
| <mat-card-content> | ||
| <p>Upload ID: {{ uploadId }}</p> | ||
|
|
||
| <div>Specify the loading info as Json</div> | ||
|
|
||
| <div> | ||
| <mat-form-field appearance="fill"> | ||
| <mat-label>Choose an example</mat-label> | ||
| <mat-select [disabled]="submittedCreate"> | ||
| <mat-option *ngFor="let option of exampleLoadingInfos" [value]="option" (click)="selectLoadingInfo(option)"> | ||
| {{ option.name }} | ||
| </mat-option> | ||
| </mat-select> | ||
| </mat-form-field> | ||
| </div> | ||
| <div> | ||
| <textarea name="loadingInfo" mdInput placeholder="Loading Info" rows="25" cols="100" [disabled]="submittedCreate">{{ | ||
| loadingInfo | ||
| }}</textarea> | ||
| </div> | ||
| <div class="actions"> | ||
| <button type="button" mat-raised-button color="primary" (click)="submitLoadingInfo(uploadId)" [disabled]="submittedCreate"> | ||
| Create dataset | ||
| </button> | ||
| </div> | ||
| </mat-card-content> | ||
| </mat-card> | ||
|
|
||
| <mat-card *ngIf="dataSetId$ | async as dataSetId"> | ||
| <mat-card-header> | ||
| <mat-card-title>Upload succesful!</mat-card-title> | ||
| </mat-card-header> | ||
|
|
||
| <mat-card-content> Dataset ID: {{ dataSetId.id.Internal }} </mat-card-content> | ||
| </mat-card> |
7 changes: 7 additions & 0 deletions
7
projects/wave-core-new/src/lib/datasets/upload/upload.component.scss
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| .actions { | ||
| padding: 1rem; | ||
| } | ||
|
|
||
| mat-card { | ||
| margin-bottom: 1rem; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.