Quote submission (#1984)
* added new-quotes get and add routes
* added new-quotes/approve route to api
* Added front-end for quote submission
* fix language typo, force lowercase language
* Check for duplicate quote
* added unknown language handling to quote-submit
* npm i
* npm i
* language dropdown instead of input field
* mouse down instead click
* styling changes
* moved quotemod check to the controller,
added refuse endpoint,
added ability to approve and edit
* limiting quotes
* added log to quote approve
* added approve quotes button
* typo
* using the correct function, lowered limit
* added quote approve popup
* getting quotes and showing them
* error checking
* error checking
* removed console log
* stylng changes,
added refresh list button
* added disabled class
* styling changes
* handling button clicks
showing langauge and timestamp
* check if user is a quote mod
* approve button handling
* handling quote edit
* showing short quotes in red
* post, not get
* not parsing quote id to int
* parsing to objectid
* updated styling
* fixed lint warnings
* fixed up new quotes dao
* showing loader
* calling function correctly
* typo fix
* fixed wrong path,
fix broken newid,
saving file when file exists,
searching for the quote correctly when attempting to delete
* showing message
* blocking buttons and inputs when waiting for response,
unlocking after response
* deleted workflow
Co-authored-by: lukew3 <lukew25073@gmail.com>
2021-10-11 05:46:35 +08:00
|
|
|
{
|
|
|
|
"name": "pinyin",
|
|
|
|
"leftToRight": true,
|
|
|
|
"accents": [
|
|
|
|
["āáǎà", "a"],
|
|
|
|
["ōóǒò", "o"],
|
|
|
|
["ēéěè", "e"],
|
|
|
|
["īíǐì", "i"],
|
|
|
|
["ūúǔù", "u"],
|
|
|
|
["üǖǘǚǜ", "v"]
|
|
|
|
],
|
|
|
|
"words": [
|
|
|
|
"de",
|
|
|
|
"yī",
|
|
|
|
"shì",
|
|
|
|
"bù",
|
|
|
|
"le",
|
|
|
|
"zài",
|
|
|
|
"rén",
|
|
|
|
"yǒu",
|
|
|
|
"wǒ",
|
|
|
|
"tā",
|
|
|
|
"zhè",
|
|
|
|
"gè",
|
|
|
|
"men",
|
|
|
|
"zhōng",
|
|
|
|
"lái",
|
|
|
|
"shàng",
|
|
|
|
"dà",
|
|
|
|
"wèi",
|
|
|
|
"hé",
|
|
|
|
"guó",
|
|
|
|
"de",
|
|
|
|
"dào",
|
|
|
|
"yǐ",
|
|
|
|
"shuō",
|
|
|
|
"shí",
|
|
|
|
"yào",
|
|
|
|
"jiù",
|
|
|
|
"chū",
|
|
|
|
"huì",
|
|
|
|
"kě",
|
|
|
|
"yě",
|
|
|
|
"nǐ",
|
|
|
|
"duì",
|
|
|
|
"shēng",
|
|
|
|
"néng",
|
|
|
|
"ér",
|
|
|
|
"zi",
|
|
|
|
"nà",
|
|
|
|
"dé",
|
|
|
|
"yú",
|
|
|
|
"zhe",
|
|
|
|
"xià",
|
|
|
|
"zì",
|
|
|
|
"zhī",
|
|
|
|
"nián",
|
|
|
|
"guò",
|
|
|
|
"fā",
|
|
|
|
"hòu",
|
|
|
|
"zuò",
|
|
|
|
"lǐ",
|
|
|
|
"yòng",
|
|
|
|
"dào",
|
|
|
|
"xíng",
|
|
|
|
"suǒ",
|
|
|
|
"rán",
|
|
|
|
"jiā",
|
|
|
|
"zhǒng",
|
|
|
|
"shì",
|
|
|
|
"chéng",
|
|
|
|
"fāng",
|
|
|
|
"duō",
|
|
|
|
"jīng",
|
|
|
|
"me",
|
|
|
|
"qù",
|
|
|
|
"fǎ",
|
|
|
|
"xué",
|
|
|
|
"rú",
|
|
|
|
"dōu",
|
|
|
|
"tóng",
|
|
|
|
"xiàn",
|
|
|
|
"dāng",
|
|
|
|
"méi",
|
|
|
|
"dòng",
|
|
|
|
"miàn",
|
|
|
|
"qǐ",
|
|
|
|
"kàn",
|
|
|
|
"dìng",
|
|
|
|
"tiān",
|
|
|
|
"fēn",
|
|
|
|
"hái",
|
|
|
|
"jìn",
|
|
|
|
"hǎo",
|
|
|
|
"xiǎo",
|
|
|
|
"bù",
|
|
|
|
"qí",
|
|
|
|
"xiē",
|
|
|
|
"zhǔ",
|
|
|
|
"yàng",
|
|
|
|
"lǐ",
|
|
|
|
"xīn",
|
|
|
|
"tā",
|
|
|
|
"běn",
|
|
|
|
"qián",
|
|
|
|
"kāi",
|
|
|
|
"dàn",
|
|
|
|
"yīn",
|
|
|
|
"zhǐ",
|
|
|
|
"cóng",
|
|
|
|
"yī",
|
|
|
|
"shí",
|
|
|
|
"rì",
|
|
|
|
"jūn",
|
|
|
|
"zhě",
|
|
|
|
"yì",
|
|
|
|
"wú",
|
|
|
|
"lì",
|
|
|
|
"tā",
|
|
|
|
"yǔ",
|
|
|
|
"zhǎng",
|
|
|
|
"bǎ",
|
|
|
|
"jī",
|
|
|
|
"shí",
|
|
|
|
"mín",
|
|
|
|
"dì",
|
|
|
|
"gōng",
|
|
|
|
"cǐ",
|
|
|
|
"yǐ",
|
|
|
|
"gōng",
|
|
|
|
"shǐ",
|
|
|
|
"qíng",
|
|
|
|
"míng",
|
|
|
|
"xìng",
|
|
|
|
"zhī",
|
|
|
|
"quán",
|
|
|
|
"sān",
|
|
|
|
"yòu",
|
|
|
|
"guān",
|
|
|
|
"diǎn",
|
|
|
|
"zhèng",
|
|
|
|
"yè",
|
|
|
|
"wài",
|
|
|
|
"jiāng",
|
|
|
|
"liǎng",
|
|
|
|
"gāo",
|
|
|
|
"jiān",
|
|
|
|
"yóu",
|
|
|
|
"wèn",
|
|
|
|
"hěn",
|
|
|
|
"zuì",
|
|
|
|
"zhòng",
|
|
|
|
"bìng",
|
|
|
|
"wù",
|
|
|
|
"shǒu",
|
|
|
|
"yīng",
|
|
|
|
"zhàn",
|
|
|
|
"xiàng",
|
|
|
|
"tóu",
|
|
|
|
"wén",
|
|
|
|
"tǐ",
|
|
|
|
"zhèng",
|
|
|
|
"měi",
|
|
|
|
"xiāng",
|
|
|
|
"jiàn",
|
|
|
|
"bèi",
|
|
|
|
"lì",
|
|
|
|
"shén",
|
|
|
|
"èr",
|
|
|
|
"děng",
|
|
|
|
"chǎn",
|
|
|
|
"huò",
|
|
|
|
"xīn",
|
|
|
|
"jǐ",
|
|
|
|
"zhì",
|
|
|
|
"shēn",
|
|
|
|
"guǒ",
|
|
|
|
"jiā",
|
|
|
|
"xī",
|
|
|
|
"sī",
|
|
|
|
"yuè",
|
|
|
|
"huà",
|
|
|
|
"hé",
|
|
|
|
"huí",
|
|
|
|
"tè",
|
|
|
|
"dài",
|
|
|
|
"nèi",
|
|
|
|
"xìn",
|
|
|
|
"biǎo",
|
|
|
|
"huà",
|
|
|
|
"lǎo",
|
|
|
|
"gěi",
|
|
|
|
"shì",
|
|
|
|
"wèi",
|
|
|
|
"cì",
|
|
|
|
"dù",
|
|
|
|
"mén",
|
|
|
|
"rèn",
|
|
|
|
"cháng",
|
|
|
|
"xiān",
|
|
|
|
"hǎi",
|
|
|
|
"tōng",
|
|
|
|
"jiào",
|
|
|
|
"ér",
|
|
|
|
"yuán",
|
|
|
|
"dōng",
|
|
|
|
"shēng",
|
|
|
|
"tí",
|
|
|
|
"lì",
|
|
|
|
"jí",
|
|
|
|
"bǐ",
|
|
|
|
"yuán"
|
|
|
|
]
|
|
|
|
}
|