mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
load new API in old API
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
console.warn('plugin/FhcApi.js is DEPRECATED! Use plugins/Api.js instead.');
|
||||
import FhcAlert from './FhcAlert.js';
|
||||
import PluginsApi from '../plugins/Api.js';
|
||||
import FhcApiFactory from '../api/fhcapifactory.js';
|
||||
|
||||
|
||||
@@ -15,6 +16,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
app.use(FhcAlert);
|
||||
app.use(PluginsApi);
|
||||
|
||||
function _get_config(form, uri, data, config) {
|
||||
if (typeof form == 'string' && config === undefined) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
console.warn('plugin/Phrasen.js is DEPRECATED! Use plugins/Phrasen.js instead.');
|
||||
import FhcApi from './FhcApi.js';
|
||||
import PluginsApi from '../plugins/Api.js';
|
||||
import ApiPhrasen from '../api/factory/phrasen.js';
|
||||
|
||||
const categories = Vue.reactive({});
|
||||
@@ -92,7 +91,6 @@ const phrasen = {
|
||||
export default {
|
||||
install(app, options) {
|
||||
app.use(FhcApi, options?.fhcApi || undefined);
|
||||
app.use(PluginsApi);
|
||||
app.config.globalProperties.$p = {
|
||||
t: phrasen.t,
|
||||
loadCategory: cat => phrasen.loadCategory.call(app, cat),
|
||||
|
||||
Reference in New Issue
Block a user