Logo
Explore Help
Sign In
MrSphay/Modrinth-plus
1
0
Fork 0
You've already forked Modrinth-plus
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
e754f6c2346ee8cb930deb9dbdc2ecf28cd4ce65
Modrinth-plus/utils/report-helpers.ts

22 lines
460 B
TypeScript
Raw Normal View History

Implement Editor MOD-349 (#1427) * Implement Editor * content oveflow fix for description * Description card fix * make everything fix in report modal * seperate report page with image upload * Bump Omorphia * Update pages/report.vue Co-authored-by: Emma Alexia <emma@modrinth.com> * suggested changes and cleanup * fix button spacing * clean up and replace report implementations * corepack fix * Remove ModalReport * image uploads for conversations * image uploading context for versions and threads * adjust information about thread messages * Update pages/report.vue Co-authored-by: Emma Alexia <emma@modrinth.com> * Adjust image upload imports * fix api changes for useImageUpload * correct report redirection uri * report button feedback * omorphia ver bump --------- Co-authored-by: Emma Alexia <emma@modrinth.com>
2023-11-29 10:56:17 -08:00
const startReport = (type: string, id: string) => {
const prefill = new URLSearchParams()
// type
prefill.set('item', type)
prefill.set('itemID', id)
navigateTo('/report?' + prefill.toString())
}
export const reportProject = (id: string) => {
return startReport('project', id)
}
export const reportVersion = (id: string) => {
return startReport('version', id)
}
export const reportUser = (id: string) => {
return startReport('user', id)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 21ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API