Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_URL=http://localhost:8888/api/v1
VITE_REACT_APP_API_URL=http://localhost:8888/api/v1
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
setup:
@yarn
@npm install

run:
@PORT=8080 yarn start
@PORT=8080 npm run dev

build:
@yarn run build
@npm run build

clean:
@find . -name "*.swp" -delete
Expand Down
1 change: 1 addition & 0 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="./src/index.jsx"></script>
</body>
</html>
16,798 changes: 16,798 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"pretty-quick": "pretty-quick"
"pretty-quick": "pretty-quick",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"eslintConfig": {
"extends": [
Expand All @@ -45,7 +44,11 @@
"devDependencies": {
"husky": "^4.3.8",
"prettier": "^2.0.5",
"pretty-quick": "^3.1.1"
"pretty-quick": "^3.1.1",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.0",
"vite": "^3.0.0"
},
"husky": {
"hooks": {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/GitlabLintHttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import axios from "axios";
import qs from "qs";

import conf from "./conf";
import conf from "./conf.js";

const GitlabLintHttpClient = (type, payload) => {
switch (type) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the BSD 3-Clause License
//
const conf = {
gitlabLintApiUrl: process.env.REACT_APP_API_URL,
gitlabLintApiUrl: import.meta.env.VITE_REACT_APP_API_URL,
};

export default conf;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
});