You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
963 B
37 lines
963 B
import { mapActions } from "vuex";
|
|
import $_can from "@Global/policy/can";
|
|
import $_name from "@Global/utils/category-name/name";
|
|
import $_color from "@Global/utils/module-color";
|
|
const global = {
|
|
methods: {
|
|
$_getPath(subPath = "", is_complete_url = false) {
|
|
if (is_complete_url && process.env.MIX_PUSHER_APP_PRODUCT == 'true') {
|
|
return subPath;
|
|
} else {
|
|
subPath = subPath.startsWith("/") ? subPath.substr(1) : subPath;
|
|
const path = process.env.MIX_PUSHER_APP_PUBLIC_PATH
|
|
? process.env.MIX_PUSHER_APP_PUBLIC_PATH
|
|
: "/";
|
|
return path + subPath;
|
|
}
|
|
},
|
|
|
|
//Modal
|
|
|
|
...mapActions("modal", [
|
|
"$_dialog",
|
|
"$_helper",
|
|
"$_openModalStack",
|
|
"$_closeModalStack"
|
|
]),
|
|
|
|
|
|
$_can,
|
|
$_name,
|
|
$_color,
|
|
|
|
}
|
|
};
|
|
|
|
export { global };
|