Skip to content

Commit

Permalink
chore: remove axios
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Sep 26, 2024
1 parent 84ad6e1 commit fb9b93d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 118 deletions.
108 changes: 4 additions & 104 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
},
"dependencies": {
"@sindresorhus/slugify": "^1.1",
"axios": "^1.7",
"bootstrap": "^5.3",
"bootstrap-icons": "^1.11",
"highlight.js": "^11.10",
"laravel-vite-plugin": "^1.0",
"highlight.js": "^11.9",
"pineapple-library": "^4.0",
"sass": "^1.76",
"vite": "^5.2"
"sass": "^1.79",
"vite": "^5.4"
},
"devDependencies": {
"justintime50-styles": "0.6.0",
"postcss-scss": "^4.0",
"stylelint": "^16.7",
"stylelint": "^16.9",
"stylelint-config-standard": "^36.0"
}
}
9 changes: 0 additions & 9 deletions src/resources/js/app.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
import "bootstrap";

import slugify from "@sindresorhus/slugify";
import axios from "axios";
import hljs from "highlight.js";
import pineapple from "pineapple-library/pineapple/dist/js/pineapple";

import * as glass from "./glass";

/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = axios;
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";

hljs.highlightAll();
window.slugify = slugify;
window.pineapple = pineapple;
Expand Down

0 comments on commit fb9b93d

Please sign in to comment.