+
-
+
👀
@@ -101,7 +111,7 @@ export default {
$subscribe: {
userViewerActivity: {
query: gql`
- subscription($streamId: String!, $resourceId: String!) {
+ subscription ($streamId: String!, $resourceId: String!) {
userViewerActivity(streamId: $streamId, resourceId: $resourceId)
}
`,
@@ -114,11 +124,11 @@ export default {
skip() {
return !this.$route.params.resourceId || !this.$loggedIn()
},
- result( res ) {
+ result(res) {
let data = res.data
// Note: swap user id checks for .userId (vs. uuid) if wanting to not allow same user two diff browsers
// it's easier to test like this though :)
- if(!data.userViewerActivity) return
+ if (!data.userViewerActivity) return
if (data.userViewerActivity.status && data.userViewerActivity.status === 'disconnect') {
this.users = this.users.filter((u) => u.uuid !== data.userViewerActivity.uuid)
this.updateBubbles(true)
diff --git a/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue b/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue
index 53b9f1070..e5b434436 100644
--- a/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue
+++ b/packages/frontend/src/main/components/viewer/CommentAddOverlay.vue
@@ -33,7 +33,7 @@
:class="`mouse elevation-5 ${!expand ? 'primary' : 'background'} mr-2`"
@click="toggleExpand()"
>
- mdi-plus
+ mdi-plus
mdi-close
diff --git a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
index a9c5b1941..a7f6f9b41 100644
--- a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
+++ b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
@@ -129,7 +129,7 @@ export default {
apollo: {
comments: {
query: gql`
- query($streamId: String!, $resources: [ResourceIdentifierInput]!) {
+ query ($streamId: String!, $resources: [ResourceIdentifierInput]!) {
comments(streamId: $streamId, resources: $resources, limit: 1000) {
totalCount
cursor
@@ -142,7 +142,7 @@ export default {
viewedAt
archived
data
- resources{
+ resources {
resourceId
resourceType
}
@@ -176,52 +176,52 @@ export default {
}
},
result({ data }) {
- if(!data) return
+ if (!data) return
for (let c of data.comments.items) {
c.expanded = false
c.hovered = false
c.bouncing = false
if (this.localComments.findIndex((lc) => c.id === lc.id) === -1 && !c.archived) {
- this.localComments.push({ ...c })
+ this.localComments.push({ ...c })
}
}
return data
},
- subscribeToMore:{
- document: gql`
- subscription($streamId: String!, $resourceIds: [String]) {
+ subscribeToMore: {
+ document: gql`
+ subscription ($streamId: String!, $resourceIds: [String]) {
commentActivity(streamId: $streamId, resourceIds: $resourceIds)
}
`,
variables() {
let resIds = [this.$route.params.resourceId]
- if(this.$route.query.overlay) resIds = [...resIds, ...this.$route.query.overlay.split(',')]
+ if (this.$route.query.overlay)
+ resIds = [...resIds, ...this.$route.query.overlay.split(',')]
return {
streamId: this.$route.params.streamId,
resourceIds: resIds
}
},
- updateQuery(prevResult, {subscriptionData}) {
- if(!subscriptionData || !subscriptionData.data || !subscriptionData.data.commentActivity) return
+ updateQuery(prevResult, { subscriptionData }) {
+ if (!subscriptionData || !subscriptionData.data || !subscriptionData.data.commentActivity)
+ return
let newComment = subscriptionData.data.commentActivity
-
+
newComment.expanded = false
newComment.hovered = false
newComment.bouncing = false
-
- if (newComment.authorId !== this.$userId())
- newComment.viewedAt = new Date('1987')
-
+
+ if (newComment.authorId !== this.$userId()) newComment.viewedAt = new Date('1987')
+
newComment.archived = false
-
- if(subscriptionData.data.commentActivity.eventType === 'comment-added') {
- if(prevResult.comments.items.find( c => c.id === newComment.id)) {
+
+ if (subscriptionData.data.commentActivity.eventType === 'comment-added') {
+ if (prevResult.comments.items.find((c) => c.id === newComment.id)) {
return
}
- if(!newComment.archived)
- this.localComments.push(newComment)
-
- setTimeout(() => {
+ if (!newComment.archived) this.localComments.push(newComment)
+
+ setTimeout(() => {
this.updateCommentBubbles()
this.bounceComment(newComment.id)
}, 10)
@@ -239,7 +239,7 @@ export default {
},
computed: {
activeComments() {
- return this.localComments.filter(c => !c.archived)
+ return this.localComments.filter((c) => !c.archived)
},
hasExpandedComment() {
return this.localComments.filter((c) => c.expanded).length !== 0
@@ -282,7 +282,7 @@ export default {
window.__viewer.cameraHandler.controls.addEventListener('update', () =>
this.updateCommentBubbles()
)
- setTimeout(()=>{
+ setTimeout(() => {
this.updateCommentBubbles()
}, 1000)
},
@@ -350,7 +350,7 @@ export default {
},
async handleDeletion(comment) {
this.collapseComment(comment)
- let comm = this.localComments.find(c => c.id === comment.id)
+ let comm = this.localComments.find((c) => c.id === comment.id)
comm.archived = true
this.updateCommentBubbles()
},
diff --git a/packages/frontend/src/main/components/viewer/ResourceGroup.vue b/packages/frontend/src/main/components/viewer/ResourceGroup.vue
index 24742e18e..5af87c5ad 100644
--- a/packages/frontend/src/main/components/viewer/ResourceGroup.vue
+++ b/packages/frontend/src/main/components/viewer/ResourceGroup.vue
@@ -62,10 +62,14 @@
>
Object
- mdi-source-commit {{ res.id }}
+
+ mdi-source-commit
+ {{ res.id }}
+
- ,
+
+ ,
diff --git a/packages/frontend/src/main/components/viewer/dialogs/AllCommits.vue b/packages/frontend/src/main/components/viewer/dialogs/AllCommits.vue
index 5cc250871..84b7ccd43 100644
--- a/packages/frontend/src/main/components/viewer/dialogs/AllCommits.vue
+++ b/packages/frontend/src/main/components/viewer/dialogs/AllCommits.vue
@@ -55,7 +55,7 @@ export default {
apollo: {
stream: {
query: gql`
- query($streamId: String!, $cursor: String) {
+ query ($streamId: String!, $cursor: String) {
stream(id: $streamId) {
id
commits(cursor: $cursor, limit: 2) {
diff --git a/packages/frontend/src/main/dialogs/BranchEditDialog.vue b/packages/frontend/src/main/dialogs/BranchEditDialog.vue
index ba9f1baf3..013056899 100644
--- a/packages/frontend/src/main/dialogs/BranchEditDialog.vue
+++ b/packages/frontend/src/main/dialogs/BranchEditDialog.vue
@@ -138,7 +138,7 @@ export default {
this.loading = true
this.error = null
this.$matomo && this.$matomo.trackPageView('branch/delete')
- this.$mixpanel.track('Branch Action', { type: 'action', name: 'delete' })
+ this.$mixpanel.track('Branch Action', { type: 'action', name: 'delete' })
try {
let res = await this.$apollo.mutate({
mutation: gql`
@@ -173,7 +173,7 @@ export default {
this.loading = true
this.$matomo && this.$matomo.trackPageView('branch/update')
- this.$mixpanel.track('Branch Action', { type: 'action', name: 'update' })
+ this.$mixpanel.track('Branch Action', { type: 'action', name: 'update' })
let res = await this.$apollo.mutate({
mutation: gql`
mutation branchUpdate($params: BranchUpdateInput!) {
diff --git a/packages/frontend/src/main/dialogs/NewBranch.vue b/packages/frontend/src/main/dialogs/NewBranch.vue
index dffee6c2f..896f170f9 100644
--- a/packages/frontend/src/main/dialogs/NewBranch.vue
+++ b/packages/frontend/src/main/dialogs/NewBranch.vue
@@ -72,7 +72,7 @@ export default {
this.loading = true
this.$matomo && this.$matomo.trackPageView('branch/create')
- this.$mixpanel.track('Branch Action', { type: 'action', name: 'create' })
+ this.$mixpanel.track('Branch Action', { type: 'action', name: 'create' })
try {
await this.$apollo.mutate({
mutation: gql`
diff --git a/packages/frontend/src/main/dialogs/ServerInvites.vue b/packages/frontend/src/main/dialogs/ServerInvites.vue
index 00578be4e..e437c8213 100644
--- a/packages/frontend/src/main/dialogs/ServerInvites.vue
+++ b/packages/frontend/src/main/dialogs/ServerInvites.vue
@@ -81,11 +81,11 @@ export default {
this.$matomo && this.$matomo.trackPageView('invite/create')
this.$matomo && this.$matomo.trackEvent('invite', 'server')
- this.$mixpanel.track('Invite Send', { type: 'action', source: 'server' })
+ this.$mixpanel.track('Invite Send', { type: 'action', source: 'server' })
try {
await this.$apollo.mutate({
mutation: gql`
- mutation($input: ServerInviteCreateInput!) {
+ mutation ($input: ServerInviteCreateInput!) {
serverInviteCreate(input: $input)
}
`,
diff --git a/packages/frontend/src/main/dialogs/StreamInviteDialog.vue b/packages/frontend/src/main/dialogs/StreamInviteDialog.vue
index 26f6cef6f..3bfcd3b1a 100644
--- a/packages/frontend/src/main/dialogs/StreamInviteDialog.vue
+++ b/packages/frontend/src/main/dialogs/StreamInviteDialog.vue
@@ -113,11 +113,11 @@ export default {
this.$matomo && this.$matomo.trackPageView('invite/stream/create')
this.$matomo && this.$matomo.trackEvent('invite', 'stream')
- this.$mixpanel.track('Invite Send', { type: 'action', source: 'stream' })
+ this.$mixpanel.track('Invite Send', { type: 'action', source: 'stream' })
try {
await this.$apollo.mutate({
mutation: gql`
- mutation($input: StreamInviteCreateInput!) {
+ mutation ($input: StreamInviteCreateInput!) {
streamInviteCreate(input: $input)
}
`,
diff --git a/packages/frontend/src/main/pages/auth/AuthorizeApp.vue b/packages/frontend/src/main/pages/auth/AuthorizeApp.vue
index 7e4910576..521cd24f5 100644
--- a/packages/frontend/src/main/pages/auth/AuthorizeApp.vue
+++ b/packages/frontend/src/main/pages/auth/AuthorizeApp.vue
@@ -118,12 +118,12 @@ export default {
methods: {
async deny() {
this.action = -1
- this.$mixpanel.track('App Authorization', { allow: false, type: 'action' })
+ this.$mixpanel.track('App Authorization', { allow: false, type: 'action' })
window.location.replace(this.denyUrl)
},
async allow() {
this.action = 1
- this.$mixpanel.track('App Authorization', { allow: true, type: 'action' })
+ this.$mixpanel.track('App Authorization', { allow: true, type: 'action' })
window.location.replace(
`${window.location.origin}/auth/accesscode?appId=${this.app.id}&challenge=${
this.$route.params.challenge
diff --git a/packages/frontend/src/main/pages/auth/Login.vue b/packages/frontend/src/main/pages/auth/Login.vue
index 38ecf850a..65ce1fa5d 100644
--- a/packages/frontend/src/main/pages/auth/Login.vue
+++ b/packages/frontend/src/main/pages/auth/Login.vue
@@ -193,7 +193,7 @@ export default {
})
if (res.redirected) {
- this.$mixpanel.track('Log In', { type: 'action' })
+ this.$mixpanel.track('Log In', { type: 'action' })
window.location = res.url
return
}
diff --git a/packages/frontend/src/main/pages/stream/Branch.vue b/packages/frontend/src/main/pages/stream/Branch.vue
index d4b74a45f..65494c271 100644
--- a/packages/frontend/src/main/pages/stream/Branch.vue
+++ b/packages/frontend/src/main/pages/stream/Branch.vue
@@ -9,7 +9,11 @@
-
+
@@ -35,7 +39,7 @@
md="4"
xl="3"
>
-
+
@@ -59,10 +63,14 @@
@infinite="infiniteHandler"
>
- You've reached the end - this branch has no more commits.
+
+ You've reached the end - this branch has no more commits.
+
- You've reached the end - this branch has no more commits.
+
+ You've reached the end - this branch has no more commits.
+
@@ -105,7 +113,7 @@ export default {
CommitReceivedReceipts: () => import('@/main/components/common/CommitReceivedReceipts'),
SourceAppAvatar: () => import('@/main/components/common/SourceAppAvatar'),
BranchToolbar: () => import('@/main/toolbars/BranchToolbar'),
- CommitPreviewCard: () => import('@/main/components/common/CommitPreviewCard'),
+ CommitPreviewCard: () => import('@/main/components/common/CommitPreviewCard')
},
data() {
return {
@@ -127,7 +135,7 @@ export default {
$subscribe: {
commitCreated: {
query: gql`
- subscription($streamId: String!) {
+ subscription ($streamId: String!) {
commitCreated(streamId: $streamId)
}
`,
@@ -147,7 +155,7 @@ export default {
},
commitDeleted: {
query: gql`
- subscription($streamId: String!) {
+ subscription ($streamId: String!) {
commitDeleted(streamId: $streamId)
}
`,
diff --git a/packages/frontend/src/main/pages/stream/Comments.vue b/packages/frontend/src/main/pages/stream/Comments.vue
index d59c54d50..84c25e66d 100644
--- a/packages/frontend/src/main/pages/stream/Comments.vue
+++ b/packages/frontend/src/main/pages/stream/Comments.vue
@@ -39,7 +39,7 @@
All this stream's comments are listed below.
-
+
@@ -93,17 +93,8 @@ export default {
},
comments: {
query: gql`
- query(
- $streamId: String!
- $archived: Boolean!
- $cursor: String
- ) {
- comments(
- streamId: $streamId
- limit: 10
- archived: $archived
- cursor: $cursor
- ) {
+ query ($streamId: String!, $archived: Boolean!, $cursor: String) {
+ comments(streamId: $streamId, limit: 10, archived: $archived, cursor: $cursor) {
totalCount
cursor
items {
@@ -117,26 +108,26 @@ export default {
variables() {
return {
streamId: this.$route.params.streamId,
- archived: this.showArchivedComments,
+ archived: this.showArchivedComments
}
},
subscribeToMore: {
document: gql`
- subscription($streamId: String!) {
+ subscription ($streamId: String!) {
commentActivity(streamId: $streamId)
}
`,
variables() {
return { streamId: this.$route.params.streamId }
},
- updateQuery(prevResult, {subscriptionData}) {
+ updateQuery(prevResult, { subscriptionData }) {
if (this.localComments.findIndex((lc) => subscriptionData.id === lc.id) === -1) {
this.localComments.push({ ...subscriptionData.data.commentActivity })
}
}
},
result({ data }) {
- if(!data) return
+ if (!data) return
this.cursor = data.comments.cursor
for (let c of data.comments.items) {
if (this.localComments.findIndex((lc) => c.id === lc.id) === -1)
@@ -146,11 +137,10 @@ export default {
}
},
methods: {
- handleDeletion( comment ){
+ handleDeletion(comment) {
this.$store.commit('setCommentSelection', { comment: null })
- let indx = this.localComments.findIndex(lc => lc.id === comment.id)
+ let indx = this.localComments.findIndex((lc) => lc.id === comment.id)
this.localComments.splice(indx, 1)
-
},
async infiniteHandler($state) {
let res = await this.$apollo.queries.comments.refetch({
diff --git a/packages/frontend/src/main/pages/stream/CommitObjectViewer.vue b/packages/frontend/src/main/pages/stream/CommitObjectViewer.vue
index 98d85b245..d4a3a2e35 100644
--- a/packages/frontend/src/main/pages/stream/CommitObjectViewer.vue
+++ b/packages/frontend/src/main/pages/stream/CommitObjectViewer.vue
@@ -381,7 +381,7 @@ export default {
window.__viewer.cameraHandler.controls.addEventListener(
'rest',
debounce(() => {
- if(!(this.$route.name === 'commit' || this.$route.name === 'object')) {
+ if (!(this.$route.name === 'commit' || this.$route.name === 'object')) {
return
}
if (this.firstCallToCam) {
diff --git a/packages/frontend/src/main/pages/stream/Globals.vue b/packages/frontend/src/main/pages/stream/Globals.vue
index be3b2e5c2..82e26b9ed 100644
--- a/packages/frontend/src/main/pages/stream/Globals.vue
+++ b/packages/frontend/src/main/pages/stream/Globals.vue
@@ -203,7 +203,7 @@ export default {
if (!this.branch) {
this.loading = true
this.$matomo && this.$matomo.trackPageView('globals/branch/create')
- this.$mixpanel.track('Globals Action', { type: 'action', name: 'create' })
+ this.$mixpanel.track('Globals Action', { type: 'action', name: 'create' })
await this.$apollo.mutate({
mutation: gql`
mutation branchCreate($params: BranchCreateInput!) {
diff --git a/packages/frontend/src/main/pages/stream/Settings.vue b/packages/frontend/src/main/pages/stream/Settings.vue
index 085f3e269..43f37c504 100644
--- a/packages/frontend/src/main/pages/stream/Settings.vue
+++ b/packages/frontend/src/main/pages/stream/Settings.vue
@@ -207,7 +207,7 @@ export default {
async save() {
this.loading = true
this.$matomo && this.$matomo.trackPageView('stream/update')
- this.$mixpanel.track('Stream Action', { type: 'action', name: 'update' })
+ this.$mixpanel.track('Stream Action', { type: 'action', name: 'update' })
try {
await this.$apollo.mutate({
mutation: gql`
@@ -238,7 +238,7 @@ export default {
},
async deleteStream() {
this.$matomo && this.$matomo.trackPageView('stream/delete')
- this.$mixpanel.track('Stream Action', { type: 'action', name: 'delete' })
+ this.$mixpanel.track('Stream Action', { type: 'action', name: 'delete' })
this.loadingDelete = true
try {
await this.$apollo.mutate({
diff --git a/packages/frontend/src/main/pages/stream/StreamHome.vue b/packages/frontend/src/main/pages/stream/StreamHome.vue
index d3def0cd1..38fff5a02 100644
--- a/packages/frontend/src/main/pages/stream/StreamHome.vue
+++ b/packages/frontend/src/main/pages/stream/StreamHome.vue
@@ -2,7 +2,11 @@
-
+
@@ -28,7 +32,10 @@
md="4"
xl="12"
>
-
+
import('@/main/components/stream/ListItemCommit'),
PreviewImage: () => import('@/main/components/common/PreviewImage'),
StreamActivity: () => import('@/main/components/stream/Activity'),
- CommitPreviewCard: () => import('@/main/components/common/CommitPreviewCard'),
+ CommitPreviewCard: () => import('@/main/components/common/CommitPreviewCard')
},
data() {
return {
diff --git a/packages/frontend/src/plugins/helpers.js b/packages/frontend/src/plugins/helpers.js
index bd40e2ac3..5588ea00f 100644
--- a/packages/frontend/src/plugins/helpers.js
+++ b/packages/frontend/src/plugins/helpers.js
@@ -34,4 +34,3 @@ Vue.prototype.$loginAndSetRedirect = function () {
localStorage.setItem('shouldRedirectTo', currUrl.replace(window.location.origin, ''))
this.$router.push('/authn/login')
}
-
diff --git a/packages/frontend/src/sass/variables.scss b/packages/frontend/src/sass/variables.scss
index 2d0e7c030..b75e46506 100644
--- a/packages/frontend/src/sass/variables.scss
+++ b/packages/frontend/src/sass/variables.scss
@@ -47,21 +47,26 @@ $primary-gradient: linear-gradient(0deg, $primary-darken 0%, $primary-base 40%);
animation-iteration-count: 2;
}
-
@-webkit-keyframes tada {
0% {
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
- 10%, 20% {
- -webkit-transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -3deg);
- transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -3deg);
+ 10%,
+ 20% {
+ -webkit-transform: scale3d(0.8, 0.8, 0.8) rotate3d(0, 0, 1, -3deg);
+ transform: scale3d(0.8, 0.8, 0.8) rotate3d(0, 0, 1, -3deg);
}
- 30%, 50%, 70%, 90% {
+ 30%,
+ 50%,
+ 70%,
+ 90% {
-webkit-transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, 3deg);
transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, 3deg);
}
- 40%, 60%, 80% {
+ 40%,
+ 60%,
+ 80% {
-webkit-transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, -3deg);
transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, -3deg);
}
@@ -75,15 +80,21 @@ $primary-gradient: linear-gradient(0deg, $primary-darken 0%, $primary-base 40%);
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
- 10%, 20% {
- -webkit-transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -3deg);
- transform: scale3d(.8, .8, .8) rotate3d(0, 0, 1, -3deg);
+ 10%,
+ 20% {
+ -webkit-transform: scale3d(0.8, 0.8, 0.8) rotate3d(0, 0, 1, -3deg);
+ transform: scale3d(0.8, 0.8, 0.8) rotate3d(0, 0, 1, -3deg);
}
- 30%, 50%, 70%, 90% {
+ 30%,
+ 50%,
+ 70%,
+ 90% {
-webkit-transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, 3deg);
transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, 3deg);
}
- 40%, 60%, 80% {
+ 40%,
+ 60%,
+ 80% {
-webkit-transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, -3deg);
transform: scale3d(1.4, 1.4, 1.4) rotate3d(0, 0, 1, -3deg);
}
@@ -202,4 +213,4 @@ $primary-gradient: linear-gradient(0deg, $primary-darken 0%, $primary-base 40%);
visibility: visible;
opacity: 1;
transition: opacity 0.15s;
-}
\ No newline at end of file
+}
diff --git a/packages/objectloader/examples/browser/index.html b/packages/objectloader/examples/browser/index.html
index 0765b1c1a..7a5b38741 100644
--- a/packages/objectloader/examples/browser/index.html
+++ b/packages/objectloader/examples/browser/index.html
@@ -1,19 +1,21 @@
+
+
+
-
-
-
+ Object Loader Test
+
- Object Loader Test
-
+
+ This is a test.
+ All the magic is in the console.
+
+ To ensure this example runs correctly, please serve this file from a local http server - if
+ you manually open the file in a browser, it might not work.
+
+ PRESS ME
+
-
- This is a test.
- All the magic is in the console.
- To ensure this example runs correctly, please serve this file from a local http server - if you manually open the file in a browser, it might not work.
- PRESS ME
-
-
-
\ No newline at end of file
+