mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-20 04:43:49 +08:00
chore(style): allow case declarations and ban var
(#987)
* chore(style): allow case declarations * chore(style): ban `var` and prefer `const`
This commit is contained in:
@ -29,7 +29,7 @@ export function getSyncer(owner, name) {
|
||||
}
|
||||
|
||||
export function updateSyncer(owner, name, syncer) {
|
||||
let newSyncer = Setting.deepCopy(syncer);
|
||||
const newSyncer = Setting.deepCopy(syncer);
|
||||
return fetch(`${Setting.ServerUrl}/api/update-syncer?id=${owner}/${encodeURIComponent(name)}`, {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
@ -38,7 +38,7 @@ export function updateSyncer(owner, name, syncer) {
|
||||
}
|
||||
|
||||
export function addSyncer(syncer) {
|
||||
let newSyncer = Setting.deepCopy(syncer);
|
||||
const newSyncer = Setting.deepCopy(syncer);
|
||||
return fetch(`${Setting.ServerUrl}/api/add-syncer`, {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
@ -47,7 +47,7 @@ export function addSyncer(syncer) {
|
||||
}
|
||||
|
||||
export function deleteSyncer(syncer) {
|
||||
let newSyncer = Setting.deepCopy(syncer);
|
||||
const newSyncer = Setting.deepCopy(syncer);
|
||||
return fetch(`${Setting.ServerUrl}/api/delete-syncer`, {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
|
Reference in New Issue
Block a user