|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<title>
|
|
|
|
|
Kara - Add reponses
|
|
|
|
|
</title>
|
|
|
|
|
<meta charset="utf8">
|
|
|
|
|
<link rel="icon" href="/favicon.ico">
|
|
|
|
|
<link rel="manifest" href="manifest/kara.json">
|
|
|
|
|
<link href="https://bootswatch.com/4/slate/bootstrap.min.css" rel="stylesheet" type="text/css"/>
|
|
|
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no"
|
|
|
|
|
name="viewport">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container-fluid" id="kara">
|
|
|
|
|
<div id="kara-banner" class="bg-dark text-light">
|
|
|
|
|
<img src="/img/logo/luna/icon.ico" class="header-logo" alt="logo-header"/>
|
|
|
|
|
{{ this.name }}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="row" id="addForm">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<h5>Add Reaction</h5>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="includeAll">Message must include all search-terms</label>
|
|
|
|
|
<input type="checkbox" id="includeALl" v-model="addModal.includeAll">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="keywords">Keywords (separated with comma)</label>
|
|
|
|
|
<input type="text" id="keywords" v-model="addModal.keywords" class="form-control">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>Responses</label>
|
|
|
|
|
<small>(Wildcards: $username$, $botname$)</small>
|
|
|
|
|
<template v-for="(key, responseOption) in addModal.responses">
|
|
|
|
|
<input type="text" v-model="addModal.responses[responseOption]" class="form-control response-input">
|
|
|
|
|
</template>
|
|
|
|
|
<div class="float-right">
|
|
|
|
|
<button class="btn-sm btn-success" @click="addResponseToInput">+</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal" @click="addNewReaction">Add
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet"
|
|
|
|
|
:href="'https://maxcdn.bootstrapcdn.com/bootswatch/4.3.1/' + activeTheme + '/bootstrap.min.css'">
|
|
|
|
|
<link href="app.css" rel="stylesheet" type="text/css"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script src="https://kit.fontawesome.com/b54a4cceff.js" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment.min.js" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
|
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
|
|
|
|
<script src="addReponse.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- JavaScript -->
|
|
|
|
|
<script src="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/alertify.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- CSS -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/alertify.min.css"/>
|
|
|
|
|
<!-- Default theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/default.min.css"/>
|
|
|
|
|
<!-- Semantic UI theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/semantic.min.css"/>
|
|
|
|
|
<!-- Bootstrap theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/bootstrap.min.css"/>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
RTL version
|
|
|
|
|
-->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/alertify.rtl.min.css"/>
|
|
|
|
|
<!-- Default theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/default.rtl.min.css"/>
|
|
|
|
|
<!-- Semantic UI theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/semantic.rtl.min.css"/>
|
|
|
|
|
<!-- Bootstrap theme -->
|
|
|
|
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.13.1/build/css/themes/bootstrap.rtl.min.css"/>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|