feat(web): add lint (#875)

* feat: add lint

* feat: fix lint error

* chore: add ignore file

* chore: close indent
This commit is contained in:
キリサメ qianxi
2022-07-10 15:45:55 +08:00
committed by GitHub
parent 475b6da35a
commit 503d244166
121 changed files with 17023 additions and 16815 deletions

View File

@ -31,8 +31,8 @@ export function getRole(owner, name) {
export function updateRole(owner, name, role) {
let newRole = Setting.deepCopy(role);
return fetch(`${Setting.ServerUrl}/api/update-role?id=${owner}/${encodeURIComponent(name)}`, {
method: 'POST',
credentials: 'include',
method: "POST",
credentials: "include",
body: JSON.stringify(newRole),
}).then(res => res.json());
}
@ -40,8 +40,8 @@ export function updateRole(owner, name, role) {
export function addRole(role) {
let newRole = Setting.deepCopy(role);
return fetch(`${Setting.ServerUrl}/api/add-role`, {
method: 'POST',
credentials: 'include',
method: "POST",
credentials: "include",
body: JSON.stringify(newRole),
}).then(res => res.json());
}
@ -49,8 +49,8 @@ export function addRole(role) {
export function deleteRole(role) {
let newRole = Setting.deepCopy(role);
return fetch(`${Setting.ServerUrl}/api/delete-role`, {
method: 'POST',
credentials: 'include',
method: "POST",
credentials: "include",
body: JSON.stringify(newRole),
}).then(res => res.json());
}