Skip to content

Commit

Permalink
Merge pull request #4 from aloware/fix/favicon-removed
Browse files Browse the repository at this point in the history
Favicon removed
  • Loading branch information
mohsen-aloware authored Apr 1, 2022
2 parents ac55c9f + c8dd990 commit 2ee7025
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

Binary file removed public/img/favicon.png
Binary file not shown.
5 changes: 2 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"/app.js": "/app.js?id=53199d4b9ce383c89f58c3321bdd5b2e",
"/app.js": "/app.js?id=c611a989f24eb726b5b16760b1519c22",
"/app-dark.css": "/app-dark.css?id=cd1d3557e4d1ad0ee48178571d428a17",
"/app.css": "/app.css?id=764ab48074813350c86491591a7e63b4",
"/img/favicon.png": "/img/favicon.png?id=1542bfe8a0010dcbee710da13cce367f"
"/app.css": "/app.css?id=764ab48074813350c86491591a7e63b4"
}
Binary file removed resources/img/favicon.png
Binary file not shown.
10 changes: 5 additions & 5 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Vue.use(VueRouter);

Vue.prototype.$http = axios.create();

window.Horizon.basePath = '/' + window.Horizon.path;
window.FairQueue.basePath = '/' + window.FairQueue.path;

let routerBasePath = window.Horizon.basePath + '/';
let routerBasePath = window.FairQueue.basePath + '/';

if (window.Horizon.path === '' || window.Horizon.path === '/') {
if (window.FairQueue.path === '' || window.FairQueue.path === '/') {
routerBasePath = '/';
window.Horizon.basePath = '';
window.FairQueue.basePath = '';
}

const router = new VueRouter({
Expand All @@ -54,7 +54,7 @@ Vue.directive('tooltip', function(el, binding) {
});

new Vue({
el: '#horizon',
el: '#fair-queue',

router,

Expand Down
4 changes: 2 additions & 2 deletions resources/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import moment from 'moment-timezone';

export default {
computed: {
Horizon() {
return Horizon;
FairQueue() {
return FairQueue;
},
},

Expand Down
6 changes: 3 additions & 3 deletions resources/js/screens/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* Load the general stats.
*/
loadStats() {
return this.$http.get(Horizon.basePath + '/api/stats')
return this.$http.get(FairQueue.basePath + '/api/stats')
.then(response => {
this.stats = response.data;
Expand All @@ -71,7 +71,7 @@
* Load the workers stats.
*/
loadWorkers() {
return this.$http.get(Horizon.basePath + '/api/masters')
return this.$http.get(FairQueue.basePath + '/api/masters')
.then(response => {
this.workers = response.data;
});
Expand All @@ -82,7 +82,7 @@
* Load the workload stats.
*/
loadWorkload() {
return this.$http.get(Horizon.basePath + '/api/workload')
return this.$http.get(FairQueue.basePath + '/api/workload')
.then(response => {
this.workload = response.data;
});
Expand Down
2 changes: 1 addition & 1 deletion resources/js/screens/metrics/jobs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
loadJobs() {
this.ready = false;
this.$http.get(Horizon.basePath + '/api/metrics/jobs')
this.$http.get(FairQueue.basePath + '/api/metrics/jobs')
.then(response => {
this.jobs = response.data;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/screens/metrics/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
loadMetric() {
this.ready = false;
this.$http.get(Horizon.basePath + '/api/metrics/' + this.$route.params.type + '/' + encodeURIComponent(this.$route.params.slug))
this.$http.get(FairQueue.basePath + '/api/metrics/' + this.$route.params.type + '/' + encodeURIComponent(this.$route.params.slug))
.then(response => {
let data = this.prepareData(response.data);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/screens/metrics/queues.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
loadQueues() {
this.ready = false;
this.$http.get(Horizon.basePath + '/api/metrics/queues')
this.$http.get(FairQueue.basePath + '/api/metrics/queues')
.then(response => {
this.queues = response.data;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/screens/queues/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
loadQueues() {
this.ready = false;
this.$http.get(Horizon.basePath + '/api/monitoring')
this.$http.get(FairQueue.basePath + '/api/monitoring')
.then(response => {
this.queues = response.data;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/screens/queues/queue-partitions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
this.ready = false;
}
this.$http.get(Horizon.basePath + '/api/queues/' + encodeURIComponent(queue) + '/partitions?starting_at='+ starting +'&limit=' + this.perPage)
this.$http.get(FairQueue.basePath + '/api/queues/' + encodeURIComponent(queue) + '/partitions?starting_at='+ starting +'&limit=' + this.perPage)
.then(response => {
if (!this.$root.autoLoadsNewEntries && refreshing && this.partitions.length && _.first(response.data).id !== _.first(this.partitions).id) {
this.hasNewEntries = true;
Expand Down
7 changes: 3 additions & 4 deletions resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="{{ asset('/vendor/fairqueue/img/favicon.png') }}">

<title>FairQueue{{ config('app.name') ? ' - ' . config('app.name') : '' }}</title>

Expand All @@ -14,7 +13,7 @@
<link href="{{ asset(mix($cssFile, 'vendor/fairqueue')) }}" rel="stylesheet">
</head>
<body>
<div id="horizon" v-cloak>
<div id="fair-queue" v-cloak>
<alert :message="alert.message"
:type="alert.type"
:auto-close="alert.autoClose"
Expand Down Expand Up @@ -58,9 +57,9 @@
</div>
</div>

<!-- Global Horizon Object -->
<!-- Global FairQueue Object -->
<script>
window.Horizon = @json($horizonScriptVariables);
window.FairQueue = @json($fairqueueScriptVariables);
</script>

<script src="{{asset(mix('app.js', 'vendor/fairqueue'))}}"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function index()
{
return view('fairqueue::layout', [
'cssFile' => 'app.css',
'horizonScriptVariables' => ['path' => 'fairqueue']
'fairqueueScriptVariables' => ['path' => 'fairqueue']
]);
}

Expand Down
1 change: 0 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ mix.options({
.sass('resources/sass/app.scss', 'public')
.sass('resources/sass/app-dark.scss', 'public')
.version()
.copy('resources/img', 'public/img')
.webpackConfig({
resolve: {
symlinks: false,
Expand Down

0 comments on commit 2ee7025

Please sign in to comment.