Skip to content

Commit

Permalink
Bug fixes for the tool shed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 20, 2023
1 parent eecaeb7 commit 24fa84e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/tool_shed/webapp/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"vue-tsc": "^1.0.16"
},
"dependencies": {
"@apollo/client": "^3.7.3",
"@apollo/client": "^3.8.6",
"@quasar/extras": "^1.12.4",
"@vue/apollo-composable": "^4.0.0-beta.1",
"@vue/apollo-option": "^4.0.0-alpha.20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import RepositoryCreation from "@/components/RepositoryCreation.vue"
const query = graphql(`
query recentlyCreatedRepositories {
relayRepositories(first: 10, sort: UPDATE_TIME_DESC) {
relayRepositories(first: 10, sort: CREATE_TIME_DESC) {
edges {
node {
...RepositoryCreationItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<script setup lang="ts">
import UtcDate from "@/components/UtcDate.vue"
import { graphql } from "@/gql"
import { type FragmentType, useFragment } from "@/gql/fragment-masking"
import { goToRepository } from "@/router"
const CreateFragment = graphql(/* GraphQL */ `
fragment RepositoryCreationItem on RelayRepository {
encodedId
name
user {
username
}
createTime
}
`)
import { CreateFragment } from "@/gqlFragements"
const props = defineProps<{
creation: FragmentType<typeof CreateFragment>
Expand Down
11 changes: 11 additions & 0 deletions lib/tool_shed/webapp/frontend/src/gqlFragements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ export const UpdateFragment = graphql(/* GraphQL */ `
updateTime
}
`)

export const CreateFragment = graphql(/* GraphQL */ `
fragment RepositoryCreationItem on RelayRepository {
encodedId
name
user {
username
}
createTime
}
`)

0 comments on commit 24fa84e

Please sign in to comment.