Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
make the frontend user data from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier authored May 16, 2023
1 parent 24ab5ee commit c3218b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ccb-frontend/src/components/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default {
if (!this.githubActionRunId) {
return null
}
return 'https://github.com/qchateau/conan-center-bot/actions/runs/' + this.githubActionRunId
const user = window.location.host.split('.')[0];
const repo = window.location.pathname.split('/')[1];
return `https://github.com/${user}/${repo}/actions/runs/` + this.githubActionRunId
},
recipes () {
return this.$recipes.status.recipes
Expand Down
5 changes: 4 additions & 1 deletion ccb-frontend/src/plugins/recipe_status.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import axios from 'axios'

const url = 'https://raw.githubusercontent.com/qchateau/conan-center-bot/status/prod/v1-update.json'
const user = window.location.host.split('.')[0];
const repo = window.location.pathname.split('/')[1];

const url = `https://raw.githubusercontent.com/${user}/${repo}/status/prod/v1-update.json`

export default {
install (Vue) {
Expand Down

0 comments on commit c3218b1

Please sign in to comment.