Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
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.

18 lines
365 B

3 years ago
3 years ago
  1. import _Vue, { PluginFunction } from 'vue';
  2. import ApiService from '@/services/ApiService';
  3. const ApiPlugin = {
  4. install: (Vue: typeof _Vue, options?: any) => {
  5. let apiService = new ApiService();
  6. Vue.mixin({
  7. created() {
  8. Vue.prototype.$api = apiService;
  9. }
  10. })
  11. }
  12. }
  13. export default ApiPlugin;