-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed issue with material total values (#219) * fixed issue with material total values * updated version number * decimals removed from materials breakdown chart * delete report issue (#221) * fixed delete, made it display speckle error message when the issue is out of our control * updated vesrion # * Rw/bug/model saving (#223) * fixed issue with material total values * mostly fixed, just something weird going on with uploading the objects * some more testing * fixed issue with models not saving properly * updated version # and message * clean up * messed around with how much we send to speckle at one time so that we don't break the arup speckle server * updated viewer version (#227) * Rw/feat/material selection (#226) * made most of the UI * started to work on small-ish refactor * very basic material selection working * transport step working (hopefully) * report review working (I think) * fixed issues with carbon calc * uploading works, updating almost works * updating a report is now working * custom material grouping working * grouping by diff params working * deleted commented out code and funcs that are no longer needed * removed useless variables * removed console.logs and some imports that are no longer used * buildups work, updated models with buildups works * cleanup * removed some stuff that is no longer needed * fixed bug * updated version update messages * chips on expandmaterialtype now filter objects in renderer * fixed issue with large models running out of memory * Rw/dev/parameter selection 2 (#229) * added in 'undefined' option to filters that need it * updated version # and dialog * Assessment page no streams (#231) * fixed issue * updated for pr comments * report sharing (#233) * added dialog to get share link * user given option to change server if they're on the wrong one for the report they're trying to view, user redirected to login if they're not signed in and then sent back to report once signed in * removed console logs * couple small last changes. Also fixed the 'no streams' page flashing up on the assessment page * updated version # * moved share button on report view page * login redirect (#234) * updated loading-container to take additional messages, updated login to redirect users back to where they wanted to go after logging in * small change to button on assessment view button * updated version number * addressed comment
- Loading branch information
Showing
16 changed files
with
380 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,93 @@ | ||
<template> | ||
<v-dialog v-model="dialog" max-width="50%" persistent> | ||
<v-card> | ||
<v-card-title>Share Report: {{ reportName }}</v-card-title> | ||
<v-card-text class="white--text"> | ||
<template v-if="isPublic !== 'nope'"> | ||
<template v-if="isPublic === true"> | ||
<p> | ||
Your stream is PUBLIC, therefore you should be able to share your | ||
report with anyone with access to your current server. | ||
</p> | ||
</template> | ||
<template v-else> | ||
<p> | ||
Your stream is PRIVATE, therefore you will not be able to share | ||
your report with anyone who is not already added to your stream. | ||
Please consult your stream owner on whether to make your stream | ||
public. | ||
</p> | ||
</template> | ||
</template> | ||
<p v-else>Loading</p> | ||
<p>Please use the link below to share your report with others:</p> | ||
<v-text-field | ||
ref="input" | ||
color="primary" | ||
append-icon="mdi-content-copy" | ||
@focus="highlighted($event)" | ||
@click:append="copyLink" | ||
:messages="messages" | ||
:value="fullShareLink" | ||
:readonly="true" | ||
></v-text-field> | ||
</v-card-text> | ||
<v-card-actions class="d-flex justify-end"> | ||
<v-btn @click="close">Close</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
<script lang="ts"> | ||
import { Vue, Component, Prop, Emit, Watch } from "vue-property-decorator"; | ||
@Component | ||
export default class ShareReportDialog extends Vue { | ||
@Prop() dialog!: boolean; | ||
@Prop() shareLink!: string; | ||
@Prop() streamid!: string; | ||
@Prop() reportName!: string; | ||
get fullShareLink() { | ||
return `${this.shareLink}?server=${this.$store.state.selectedServer.url}`; | ||
} | ||
messages: string[] = []; | ||
isPublic?: boolean | string = "nope"; | ||
@Emit("close") | ||
close() { | ||
return; | ||
} | ||
async mounted() { | ||
if (this.streamid) | ||
this.isPublic = await this.$store.dispatch("checkStreamPublic", { | ||
streamid: this.streamid, | ||
}); | ||
} | ||
@Watch("streamid") | ||
async streamIdChange() { | ||
this.isPublic = await this.$store.dispatch("checkStreamPublic", { | ||
streamid: this.streamid, | ||
}); | ||
} | ||
highlighted(event: any) { | ||
event.target.select(); | ||
navigator.clipboard.writeText(this.fullShareLink); | ||
this.successMessage(); | ||
} | ||
copyLink() { | ||
(this.$refs as any).input.onFocus(); | ||
this.successMessage(); | ||
} | ||
successMessage() { | ||
this.messages = ["Copied to clipboard"]; | ||
setTimeout(() => (this.messages = []), 4000); | ||
} | ||
} | ||
</script> |
This file contains 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,50 @@ | ||
<template> | ||
<v-dialog v-model="dialog" max-width="50%" persistent> | ||
<v-card> | ||
<v-card-title> Speckle Server Mismatch </v-card-title> | ||
<v-card-text class="white--text"> | ||
<p> | ||
The Speckle server that you're signed in to does not match the server | ||
for this report. | ||
</p> | ||
<div class="d-flex justify-space-around"> | ||
<div> | ||
<p>Your server:</p> | ||
<p>{{ currentServer }}</p> | ||
</div> | ||
<div> | ||
<p>Report server:</p> | ||
<p>{{ reportServer }}</p> | ||
</div> | ||
</div> | ||
<p>Would you like to attempt to log into the correct server?</p> | ||
<div class="d-flex justify-center"> | ||
<v-btn color="primary" outlined @click="attemptLogin">Attempt login</v-btn> | ||
</div> | ||
</v-card-text> | ||
<v-card-actions class="d-flex justify-end"> | ||
<v-btn href="/">Back to dashboard</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</template> | ||
<script lang="ts"> | ||
import { Vue, Component, Prop, Emit } from "vue-property-decorator"; | ||
@Component | ||
export default class ChangeServerDialog extends Vue { | ||
@Prop() dialog!: boolean; | ||
@Prop() currentServer!: string; | ||
@Prop() reportServer!: string; | ||
@Emit("close") | ||
close() { | ||
return; | ||
} | ||
@Emit("attemptLogin") | ||
attemptLogin() { | ||
return this.reportServer; | ||
} | ||
} | ||
</script> |
This file contains 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 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 @@ | ||
export interface StreamIsPublicQuery { | ||
data: { | ||
stream: { | ||
isPublic: boolean; | ||
}; | ||
}; | ||
} |
This file contains 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 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 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 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
Oops, something went wrong.