Compare commits
No commits in common. "1f24d463606574903ddb48618c43ba9bce89c69f" and "3f04b9392a4a8af846d16b429ff39906ddccea4e" have entirely different histories.
1f24d46360
...
3f04b9392a
@ -18,7 +18,12 @@
|
||||
</template>
|
||||
<template v-slot:description>{{ notice.description }}</template>
|
||||
</i18n>
|
||||
<a v-if="notice.nova" href="https://nova.tornado.ws/" target="_blank" rel="noopener noreferrer">
|
||||
<a
|
||||
v-if="notice.nova"
|
||||
href="https://nova.tornado.ws"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Tornado Cash Nova
|
||||
</a>
|
||||
<a
|
||||
|
@ -705,24 +705,16 @@ const actions = {
|
||||
break
|
||||
case 13:
|
||||
text = text.replace(/\\\\n\\\\n(\s)?(\\n)?/g, '\\n')
|
||||
break
|
||||
// Fix invalid JSON in proposal 15: replace single quotes with double and add comma before description
|
||||
case 15:
|
||||
text = text.replaceAll(`'`, `"`)
|
||||
text = text.replace('"description"', ',"description"')
|
||||
break
|
||||
case 16:
|
||||
text = text.replace('#16: ', '')
|
||||
break
|
||||
// Add title to empty (without title and description) hacker proposal 21
|
||||
case 21:
|
||||
return {
|
||||
title: 'Proposal #21: Restore Governance',
|
||||
description: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (text.includes(`'`)) {
|
||||
text = text.replaceAll(`'`, `"`)
|
||||
}
|
||||
if (text.includes(`" "`)) {
|
||||
text = text.replace(`" "`, `", "`)
|
||||
}
|
||||
|
||||
let title, description, rest
|
||||
try {
|
||||
;({ title, description } = JSON.parse(text))
|
||||
|
Loading…
x
Reference in New Issue
Block a user