-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4375b9
commit c5c91b1
Showing
20 changed files
with
1,340 additions
and
1,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
scp_sh.txt | ||
|
||
# local env files | ||
.env.local | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import axios from 'axios' | ||
import { QS } from './global' | ||
|
||
export const uploadReport = (type, content, discussionId) => { | ||
return axios({ | ||
method: 'PUT', | ||
url: `/discussionsAudit`, | ||
data: QS({ type, content, discussionId }), | ||
}) | ||
} | ||
|
||
export const deleteReport = id => { | ||
return axios({ | ||
method: 'DELETE', | ||
url: `/discussionAudit/${id}`, | ||
}) | ||
} | ||
|
||
export const getDiscussionReportList = page => { | ||
return axios({ | ||
method: 'GET', | ||
url: `/discussionAudit/index`, | ||
params: { page }, | ||
}) | ||
} | ||
|
||
export const getDiscussionReportByState = state => { | ||
return axios({ | ||
method: 'GET', | ||
url: `/discussionAudit/search`, | ||
params: { state }, | ||
}) | ||
} | ||
|
||
export const isCurrentUserAdmin = () => { | ||
return axios({ | ||
method: 'GET', | ||
url: `/user/is-admin`, | ||
}) | ||
} | ||
|
||
export const getDiscussionReportById = id => { | ||
return axios({ | ||
method: 'GET', | ||
url: `/discussionAudit/${id}`, | ||
}) | ||
} | ||
|
||
export const dealDiscussionReport = (id, state, feedBack) => { | ||
return axios({ | ||
method: 'POST', | ||
url: `/discussionAudit/${id}`, | ||
data: QS({ state, feedBack }), | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import store from '../store' | ||
import { siteTitleInFull } from '../strings' | ||
|
||
export function updateTitleTo(value) { | ||
store.dispatch('updateNavTitle', value) | ||
document.title = `${value} ~ ${siteTitleInFull}` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.