Move API_ORIGIN into constants.js
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
<script>
|
||||
|
||||
import { fetcher, Button, ButtonGroup, Dialog, FileUploader, InputDialog, MainLayout, TopBar } from 'pankow';
|
||||
|
||||
import '@xterm/xterm/css/xterm.css';
|
||||
import { Terminal } from '@xterm/xterm';
|
||||
import { AttachAddon } from '@xterm/addon-attach';
|
||||
import { FitAddon } from '@xterm/addon-fit';
|
||||
import { ISTATES, RSTATES, HSTATES } from '../constants.js';
|
||||
import { API_ORIGIN, ISTATES, RSTATES, HSTATES } from '../constants.js';
|
||||
import AppsModel from '../models/AppsModel.js';
|
||||
import { createDirectoryModel } from '../models/DirectoryModel.js';
|
||||
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
|
||||
|
||||
export default {
|
||||
name: 'Terminal',
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user