Web: import from package-relative path
Use `@/path/to/file` instead of `./path/to/file`, as the former will be valid even when used in a subdirectory (i.e. in cases where the latter would have to change to `../path/to/file`). This makes imports uniform and easier to copy-paste into other files. No functional changes.
This commit is contained in:
parent
6655c2b3d7
commit
7bde1e243a
@ -20,13 +20,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as urls from './urls'
|
import * as urls from '@/urls'
|
||||||
import * as API from './manager-api';
|
import * as API from '@/manager-api';
|
||||||
import ApiSpinner from './components/ApiSpinner.vue'
|
|
||||||
import JobsTable from './components/JobsTable.vue'
|
import ApiSpinner from '@/components/ApiSpinner.vue'
|
||||||
import JobDetails from './components/JobDetails.vue'
|
import JobsTable from '@/components/JobsTable.vue'
|
||||||
import TaskDetails from './components/TaskDetails.vue'
|
import JobDetails from '@/components/JobDetails.vue'
|
||||||
import UpdateListener from './components/UpdateListener.vue'
|
import TaskDetails from '@/components/TaskDetails.vue'
|
||||||
|
import UpdateListener from '@/components/UpdateListener.vue'
|
||||||
|
|
||||||
const DEFAULT_FLAMENCO_NAME = "Flamenco";
|
const DEFAULT_FLAMENCO_NAME = "Flamenco";
|
||||||
const DEFAULT_FLAMENCO_VERSION = "unknown";
|
const DEFAULT_FLAMENCO_VERSION = "unknown";
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="js">
|
<script lang="js">
|
||||||
import * as datetime from "../datetime";
|
import * as datetime from "@/datetime";
|
||||||
import * as API from "../manager-api";
|
import * as API from '@/manager-api';
|
||||||
|
|
||||||
function objectEmpty(o) {
|
function objectEmpty(o) {
|
||||||
if (!o) return true;
|
if (!o) return true;
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
<script lang="js">
|
<script lang="js">
|
||||||
import { TabulatorFull as Tabulator } from 'tabulator-tables';
|
import { TabulatorFull as Tabulator } from 'tabulator-tables';
|
||||||
import * as datetime from "../datetime";
|
import * as datetime from "@/datetime";
|
||||||
import * as API from '../manager-api'
|
import * as API from '@/manager-api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
emits: ["selectedJobChange"],
|
emits: ["selectedJobChange"],
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import io from "socket.io-client";
|
import io from "socket.io-client";
|
||||||
import * as API from "../manager-api"
|
import * as API from "@/manager-api"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
emits: [
|
emits: [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
|
|
||||||
import App from './App.vue'
|
import App from '@/App.vue'
|
||||||
import router from './router'
|
import router from '@/router'
|
||||||
|
|
||||||
// Ensure Tabulator can find `luxon`, which it needs for sorting by
|
// Ensure Tabulator can find `luxon`, which it needs for sorting by
|
||||||
// date/time/datetime.
|
// date/time/datetime.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user