Skip to content

Commit

Permalink
AMP-3122/3371/3377
Browse files Browse the repository at this point in the history
: update packages
- fix for app/store/router API changes
- fix vue3 warnings
- debug log for pathify
  • Loading branch information
yingfeng-iu committed Sep 2, 2024
1 parent c13b378 commit 8fa2518
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 144 deletions.
85 changes: 11 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 20 additions & 19 deletions src/components/account/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,37 +146,38 @@ export default {
async checkForm() {
event.preventDefault();
let self = this;
this.errors.other_errors = [];
if (!this.email) {
this.errors.email_error = "(Email required)";
self.errors.other_errors = [];
if (!self.email) {
self.errors.email_error = "(Email required)";
}
if (!this.pswd) {
this.errors.pswd_error = "(Password required)";
if (!self.pswd) {
self.errors.pswd_error = "(Password required)";
}
if (this.errors.email_error == "" && this.errors.pswd_error == "") {
var currentUser = await accountService.login(this.email, this.pswd);
console.log("current user:" + currentUser);
console.log("AUTH:");
if (self.errors.email_error == "" && self.errors.pswd_error == "") {
var currentUser = await accountService.login(self.email, self.pswd);
console.log("current user: " + currentUser);
if (currentUser && currentUser.token) {
self.isAuthenticated = true;
await self.accessControlService.initPermissions(this);
console.log("self.accessControl = ", self.accessControl)
console.log("store.accessControl: ", self.$store.state.accessControl);
await self.accessControlService.initPermissions(self);
// Force setting localStorage vuex object for state in vuex-persistedstate
let vuex = JSON.parse(localStorage.getItem("vuex"));
localStorage.setItem("vuex", JSON.stringify({
...vuex,
acUnitsActions: this.acUnitsActions,
acUnitsMedia: this.acUnitsMedia,
acUnitsOutput: this.acUnitsOutput,
acActions: this.acActions,
acUnitsActions: self.acUnitsActions,
acUnitsMedia: self.acUnitsMedia,
acUnitsOutput: self.acUnitsOutput,
acActions: self.acActions,
}));
if (this.$route.query.returnUrl) {
console.log("going to " + this.$route.query.returnUrl);
this.$router.push(this.$route.query.returnUrl);
if (self.$route.query.returnUrl) {
console.log("going to " + self.$route.query.returnUrl);
self.$router.push(self.$route.query.returnUrl);
} else {
this.$router.push("/");
self.$router.push("/");
}
} else {
this.errors.other_errors.push("Email and password do not match");
self.errors.other_errors.push("Email and password do not match");
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/batch/BatchIngest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
<div class="form-row">
<div class="col-lg-6">
<input
v-bind="filename"
type="file"
class="form-control-file btn btn-light btn-lg"
id="exampleFormControlFile1"
ref="inputFile"
value="Upload batch manifest"
:disabled="inProgress || unitName.length === 0"
v-bind="filename"
accept=".csv"
@change="
filesChange($event.target.name, $event.target.files);
Expand Down
4 changes: 2 additions & 2 deletions src/components/dashboard/DashboardTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@
}"
>
<td v-if="checkAvailability('testDate')">
{{ new Date(rec.testDate) | LOCAL_DATE_VALUE }}
{{ $filters.localDate(new Date(rec.testDate)) }}
</td>
<td v-if="checkAvailability('dateCreated')">
{{ new Date(rec.dateCreated) | LOCAL_DATE_VALUE }}
{{ $filters.localDate(new Date(rec.dateCreated)) }}
</td>
<td v-if="checkAvailability('submitter')">{{ rec.submitter }}</td>
<td v-if="checkAvailability('unit')">{{ rec.unitName }}</td>
Expand Down
16 changes: 8 additions & 8 deletions src/components/entity/EntityList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.createdDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.createdDate)"
:disabled="true"
/>
</div>
Expand All @@ -161,7 +161,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.modifiedDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.modifiedDate )"
:disabled="true"
/>
</div>
Expand Down Expand Up @@ -325,7 +325,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.createdDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.createdDate)"
:disabled="true"
/>
</div>
Expand All @@ -346,7 +346,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.modifiedDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.modifiedDate )"
:disabled="true"
/>
</div>
Expand All @@ -371,7 +371,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.createdDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.createdDate)"
:disabled="true"
/>
</div>
Expand All @@ -390,7 +390,7 @@
<input
type="text"
class="form-control w-100"
:value="entity.modifiedDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(entity.modifiedDate )"
:disabled="true"
/>
</div>
Expand Down Expand Up @@ -851,7 +851,7 @@
<div class="col-2">
<label>Date Created:</label>
<p class="mb-0">
{{ elem.createdDate | LOCAL_DATE_VALUE }}
{{ $filters.localDate(elem.createdDate ) }}
</p>
</div>
<div class="col-2">
Expand All @@ -865,7 +865,7 @@
<div class="col-2">
<label>Modified Date</label>
<p class="mb-0">
{{ elem.modifiedDate | LOCAL_DATE_VALUE }}
{{ $filters.localDate(elem.modifiedDate ) }}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/entity/OutputFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- -->
<tr v-for="output in listOfOutputList" :key="output.id">
<td>
<p>{{ new Date(output.dateCreated) | LOCAL_DATE_VALUE }}</p>
<p>{{ $filters.localDate(new Date(output.dateCreated)) }}</p>
</td>
<td>
{{ output.submitter }}
Expand Down
2 changes: 1 addition & 1 deletion src/components/evaluation/GroundTruthModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<td>
{{ supplement.description }}
</td>
<td>{{ supplement.createdDate | LOCAL_DATE_VALUE }}</td>
<td>{{ $filters.localDate(supplement.createdDate) }}</td>
<td class="text-center slim-col-12">
<input
type="radio"
Expand Down
4 changes: 2 additions & 2 deletions src/components/supplement/SupplementFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
type="text"
class="form-control"
id="create_date"
:value="supplement.fileDetails.createdDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(supplement.fileDetails.createdDate)"
disabled
/>
</div>
Expand All @@ -259,7 +259,7 @@
type="text"
class="form-control"
id="modified_date"
:value="supplement.fileDetails.modifiedDate | LOCAL_DATE_VALUE"
:value="$filters.localDate(supplement.fileDetails.modifiedDate)"
disabled
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/supplement/SupplementList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
<div class="col">
Modified Date: <br />{{
elem.modifiedDate | LOCAL_DATE_VALUE
$filters.localDate(elem.modifiedDate)
}}
</div>
<div class="col">
Expand Down
2 changes: 1 addition & 1 deletion src/components/workflow/SelectFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
>
<td>{{ res.outputLabel }}</td>
<td>
{{ new Date(res.dateCreated) | LOCAL_DATE_VALUE }}
{{ $filters.localDate(new Date(res.dateCreated)) }}
</td>
<td>{{ res.submitter }}</td>
<td>{{ res.workflowName }}</td>
Expand Down
4 changes: 2 additions & 2 deletions src/components/workflow/WorkflowList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
<!-- <div class="col"> Creator: </div> -->
<div class="col">
Date Created:
<br />{{ workflow.createTime | LOCAL_DATE_VALUE }}
<br />{{ $filters.localDate(workflow.createTime) }}
</div>
<div class="col">
Last Updated:
<br />{{ workflow.updateTime | LOCAL_DATE_VALUE }}
<br />{{ $filters.localDate(workflow.updateTime) }}
</div>
<!-- <div class="col"> Version: </div> -->
<div class="col" v-if="workflow.tags && workflow.tags.length">
Expand Down
Loading

0 comments on commit 8fa2518

Please sign in to comment.