Skip to content

Commit

Permalink
Improved dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Oct 10, 2021
1 parent ad8fe28 commit 12f1aa6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ export default {
await icon.set("highResPngUrl", savedFile._url);
await icon.set("isReUpload", true);
await icon.set("isReview", false);
await icon.set("approved", false);
await icon.set("highResPngFile", parseFile);
Expand Down
6 changes: 5 additions & 1 deletion website/macos-big-sur-icons/src/components/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -1543,10 +1543,14 @@ coral-buttongroup button{
padding-left: 10px;
}

.coral-Heading--M a{
.coral--dark .coral-Heading--M a{
color: white;
}

.coral--light .coral-Heading--M a{
color: var(--coral-dark-bg);
}

/* .search-wrapper-dashboard{
} */
Expand Down
25 changes: 12 additions & 13 deletions website/macos-big-sur-icons/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</div> -->

<!-- Tabs -->
<coral-tablist>
<coral-tablist v-if="isAuth">
<coral-tab aria-label="newIcons" selected="" @click="changeIconStatus('newIcons')">
New Icons
<span class="coral-Detail coral-Detail--M f-w-400 opacity-80">
Expand Down Expand Up @@ -106,9 +106,13 @@

<div class="card-img-wrapper" style="max-width: 120px;">

<div v-if="icon.isReview" class="loading-approval-wrapper">
<div v-if="icon.isReview || icon.isReview && icon.isReUpload" class="loading-approval-wrapper">
<coral-status v-if="icon.isReview" variant="success"></coral-status>
</div>

<div v-if="!icon.isReview && icon.isReUpload" class="loading-approval-wrapper">
<coral-status v-if="icon.isReUpload" color="Yellow"></coral-status>
</div>

<a :href="icon.imgUrl" target="_blank">
<div v-lazy-container="{ selector: 'img', loading: coralIcons.loading }">
Expand Down Expand Up @@ -309,7 +313,8 @@ export default {
let parent = this
let newName = e.target.value
console.log(newName);
console.log("icon: ", icon);
// console.log(newName);
if(isMultipleIcons){
let listLen = Object.keys(icon.icons).length
Expand Down Expand Up @@ -400,23 +405,17 @@ export default {
let parent = this
// console.log(icon);
console.log("icon.id: ", icon.id);
let parentIcon = parent.icons[icon.usersName].icons[icon.id]
// let parentIcon = parent.icons[icon.usersName].icons[icon.appName]
// console.log("icon: ", icon);
// console.log("parentIcon: ", parentIcon);
// console.log("parent.icons[icon.usersName].icons[icon.appName]: ", parent.icons[icon.usersName].icons[icon.appName]);
let newIcon = {...icon}
delete newIcon.DownloadCount
delete newIcon.user
delete newIcon.category
delete newIcon.type
// console.log(icon);
// Parse.Cloud.run("approve", icon).then((result)=>{
Parse.Cloud.run("testJob", newIcon).then((result)=>{
Vue.set(parentIcon, 'isReview', true)
icon.isReview = true
icon.isReUploadReview = true
parent.showToast({
id: "toastMessage",
message: "Icon has been approved",
Expand Down Expand Up @@ -567,10 +566,10 @@ export default {
// const userQuery = new Parse.Query(User);
// userQuery.descending("modifiedAt");
query.equalTo("approved", false)
// query.equalTo("isReUpload", false)
query.descending("createdAt");
// query.ascending("usersName");
query.equalTo("approved", false)
query.descending("createdAt");
query.exists("highResPngFile");
query.limit(docLimit);
Expand Down

1 comment on commit 12f1aa6

@vercel
Copy link

@vercel vercel bot commented on 12f1aa6 Oct 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.