mirror of
https://github.com/OkaeriPoland/okaeri-timings.git
synced 2026-05-28 00:51:23 +02:00
Setup axios with the dev/prod environment variables for the API access
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<MDBCardTitle>1. Generate report</MDBCardTitle>
|
||||
<MDBCardText>
|
||||
Execute this command on your Linux based system:
|
||||
<pre class="mt-2 mb-4">curl -s https://timings.okaeri.eu/otimings.sh | bash -s 60</pre>
|
||||
<pre class="mt-2 mb-4">curl -s {{ appUrl }}/otimings.sh | bash -s 60</pre>
|
||||
<strong>Note:</strong> report generation takes a long time. Make sure it runs till the end (e.g. using <code>screen</code>)
|
||||
for the best results. The default run-time is <code>60</code> minutes and cannot be shorter than 5 minutes. After the script
|
||||
finalizes its run, the file named 'okaeri-timings-XXX.csv' (e.g. 'okaeri-timings-1642975054.csv') will be available.
|
||||
@@ -187,7 +187,8 @@ export default {
|
||||
},
|
||||
setup: function () {
|
||||
return {
|
||||
dataLabels: ['user', 'nice', 'system', 'idle', 'iowait', 'irq', 'softirq', 'steal', 'guest', 'guest_nice']
|
||||
dataLabels: ['user', 'nice', 'system', 'idle', 'iowait', 'irq', 'softirq', 'steal', 'guest', 'guest_nice'],
|
||||
appUrl: process.env.VUE_APP_URL
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
|
||||
@@ -4,10 +4,15 @@ import 'typeface-roboto/index.css'
|
||||
import {createApp} from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
import axios from 'axios'
|
||||
import VueAxios from 'vue-axios'
|
||||
import fontAwesome from "@/plugins/font-awesome";
|
||||
import VueApexCharts from "vue3-apexcharts";
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(VueAxios, axios);
|
||||
app.use(fontAwesome);
|
||||
app.use(VueApexCharts);
|
||||
app.mount('#app')
|
||||
|
||||
app.axios.defaults.baseURL = process.env.VUE_APP_API_URL;
|
||||
|
||||
Reference in New Issue
Block a user