Isolate Netlify, Firebase and Helper functions + Import from absolute paths

This commit is contained in:
Liyas Thomas
2020-06-21 09:24:45 +05:30
parent 24315ab0e6
commit 5d94ac361e
56 changed files with 108 additions and 112 deletions

View File

@@ -40,7 +40,7 @@ div.realtime-log {
</style>
<script>
import { getSourcePrefix } from "~/functions/utils/string"
import { getSourcePrefix } from "~/helpers/utils/string"
export default {
props: ["log", "title"],

View File

@@ -70,11 +70,11 @@
<script>
import Paho from "paho-mqtt"
import { wsValid } from "~/functions/utils/valid"
import { wsValid } from "~/helpers/utils/valid"
export default {
components: {
"pw-section": () => import("../../components/layout/section"),
"pw-section": () => import("~/components/layout/section"),
realtimeLog: () => import("./log"),
},
data: function () {

View File

@@ -76,13 +76,13 @@
</template>
<script>
import { socketioValid } from "~/functions/utils/valid"
import { socketioValid } from "~/helpers/utils/valid"
import io from "socket.io-client"
import wildcard from "socketio-wildcard"
export default {
components: {
"pw-section": () => import("../../components/layout/section"),
"pw-section": () => import("~/components/layout/section"),
realtimeLog: () => import("./log"),
},
data() {

View File

@@ -40,7 +40,7 @@
</template>
<script>
import { httpValid } from "~/functions/utils/valid"
import { httpValid } from "~/helpers/utils/valid"
export default {
components: {

View File

@@ -66,7 +66,7 @@
</template>
<script>
import { wsValid } from "~/functions/utils/valid"
import { wsValid } from "~/helpers/utils/valid"
export default {
components: {