Browse Source
Edit comment and remove unused variable
pull/427/head
zsxeee
3 years ago
No known key found for this signature in database
GPG Key ID: 895CFFFD8313B3B8
18 changed files with
1 additions and
129 deletions
-
src/components/notifications/Apprise.vue
-
src/components/notifications/Discord.vue
-
src/components/notifications/Gotify.vue
-
src/components/notifications/Line.vue
-
src/components/notifications/LunaSea.vue
-
src/components/notifications/Mattermost.vue
-
src/components/notifications/Octopush.vue
-
src/components/notifications/Pushbullet.vue
-
src/components/notifications/Pushover.vue
-
src/components/notifications/Pushy.vue
-
src/components/notifications/RocketChat.vue
-
src/components/notifications/SMTP.vue
-
src/components/notifications/Signal.vue
-
src/components/notifications/Slack.vue
-
src/components/notifications/Teams.vue
-
src/components/notifications/Telegram.vue
-
src/components/notifications/Webhook.vue
-
src/components/notifications/index.js
|
|
@ -22,7 +22,6 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "apprise", |
|
|
|
appriseInstalled: false |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
@ -18,13 +18,3 @@ |
|
|
|
<input id="discord-prefix-message" v-model="$parent.notification.discordPrefixMessage" type="text" class="form-control" autocomplete="false" placeholder="Hello @everyone is..."> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "discord", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -23,10 +23,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "gotify", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -25,10 +25,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "line", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -7,13 +7,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "lunasea", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -30,13 +30,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "mattermost", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -36,10 +36,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "octopush", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -16,10 +16,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "pushbullet", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -63,10 +63,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "pushover", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -22,10 +22,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "pushy", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -27,13 +27,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "rocket.chat", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -66,10 +66,5 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "smtp", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -30,13 +30,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "signal", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -27,13 +27,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "slack", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
@ -17,13 +17,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "teams", |
|
|
|
}; |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
@ -47,11 +47,6 @@ export default { |
|
|
|
components: { |
|
|
|
HiddenInput, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "telegram", |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
telegramGetUpdatesURL() { |
|
|
|
let token = "<YOUR BOT TOKEN HERE>" |
|
|
@ -62,9 +57,6 @@ export default { |
|
|
|
|
|
|
|
return `https://api.telegram.org/bot${token}/getUpdates`; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async autoGetTelegramChatID() { |
|
|
|
|
|
@ -21,17 +21,3 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
name: "webhook", |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
@ -17,7 +17,7 @@ import Line from "./Line.vue"; |
|
|
|
import Mattermost from "./Mattermost.vue"; |
|
|
|
|
|
|
|
/** |
|
|
|
* manage all notification form. |
|
|
|
* Manage all notification form. |
|
|
|
* |
|
|
|
* @type { Record<string, any> } |
|
|
|
*/ |
|
|
|