You've already forked AstralRinth
forked from didirus/AstralRinth
Fix Cloudflare Pages build (#1285)
* fix(temp): remove box shadows from tailwind config * fix(temp): "polyfill" global during build process * refactor: use `import.meta` instead of deprecated `process` * oops: replace `process.server` as well
This commit is contained in:
@@ -3,7 +3,7 @@ import { Card } from "@modrinth/ui";
|
||||
import VueApexCharts from "vue3-apexcharts";
|
||||
|
||||
// let VueApexCharts
|
||||
// if (process.client) {
|
||||
// if (import.meta.client) {
|
||||
// VueApexCharts = defineAsyncComponent(() => import('vue3-apexcharts'))
|
||||
// }
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ function useLoadingIndicator(opts: { duration: number; throttle: number }) {
|
||||
function start() {
|
||||
clear();
|
||||
progress.value = 0;
|
||||
if (opts.throttle && process.client) {
|
||||
if (opts.throttle && import.meta.client) {
|
||||
_throttle = setTimeout(() => {
|
||||
isLoading.value = true;
|
||||
_startTimer();
|
||||
@@ -113,7 +113,7 @@ function useLoadingIndicator(opts: { duration: number; throttle: number }) {
|
||||
|
||||
function _hide() {
|
||||
clear();
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
setTimeout(() => {
|
||||
isLoading.value = false;
|
||||
setTimeout(() => {
|
||||
@@ -124,7 +124,7 @@ function useLoadingIndicator(opts: { duration: number; throttle: number }) {
|
||||
}
|
||||
|
||||
function _startTimer() {
|
||||
if (process.client) {
|
||||
if (import.meta.client) {
|
||||
_timer = setInterval(() => {
|
||||
_increase(step.value);
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user