Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/vue-localstorage/src/ drwxr-xr-x |
Viewing file: Select action/file-type: import vueLocalStorage from './VueLocalStorage' export default { /** * Install vue-local-storage plugin * * @param {Vue} Vue * @param {Object} options */ install: (Vue, options = {}) => { if (typeof process !== 'undefined' && ( process.server || process.SERVER_BUILD || (process.env && process.env.VUE_ENV === 'server') ) ) { return } let isSupported = true try { const test = '__vue-localstorage-test__' window.localStorage.setItem(test, test) window.localStorage.removeItem(test) } catch (e) { isSupported = false vueLocalStorage._isSupported = false console.error('Local storage is not supported') } const name = options.name || 'localStorage' const bind = options.bind if (options.namespace) { vueLocalStorage.namespace = options.namespace } Vue.mixin({ beforeCreate () { if (!isSupported) { return } if (this.$options[name]) { Object.keys(this.$options[name]).forEach((key) => { const config = this.$options[name][key] const [type, defaultValue] = [config.type, config.default] vueLocalStorage.addProperty(key, type, defaultValue) const existingProp = Object.getOwnPropertyDescriptor(vueLocalStorage, key) if (!existingProp) { const prop = { get: () => Vue.localStorage.get(key, defaultValue), set: val => Vue.localStorage.set(key, val), configurable: true } Object.defineProperty(vueLocalStorage, key, prop) Vue.util.defineReactive(vueLocalStorage, key, defaultValue) } else if (!Vue.config.silent) { console.log(`${key}: is already defined and will be reused`) } if ((bind || config.bind) && config.bind !== false) { this.$options.computed = this.$options.computed || {} if (!this.$options.computed[key]) { this.$options.computed[key] = { get: () => Vue.localStorage[key], set: (val) => { Vue.localStorage[key] = val } } } } }) } } }) Vue[name] = vueLocalStorage Vue.prototype[`$${name}`] = vueLocalStorage } } |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0031 ]-- |