-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
67 lines (60 loc) · 2.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Minta</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="src/app.css">
</head>
<body>
<header class="text-center">
Minta
</header>
<div id="app">
<div class="list-group">
<div class="list-group-item">
<div class="input-group">
<input type="text" class="form-control"
placeholder="Add your strings here"
v-model="newItem"
@keydown="selectItem"
@keyup.enter="add"
@focus="showSelectedItemIndex"
@blur="hideSelectedItemIndex"
ref="input">
<div class="input-group-btn">
<button type="button" class="btn btn-success" @click="add">
<span class="glyphicon glyphicon-plus"></span>
</button>
</div>
</div>
</div>
<div class="list-group-item"
:class="{'selected': index === selectedItemIndex}"
v-if="items.length"
v-for="(item, index) in items">
<span class="code">{{ item }}</span>
<div class="delete-button pull-right">
<button type="button" class="btn btn-transparent btn-xs" @click="remove(index)">
<span class="glyphicon glyphicon-remove"></span> Remove
</button>
</div>
</div>
</div>
<div id="regex" class="text-center copy" v-if="items.length"
:data-clipboard-text="regex"
@click="triggerCopyFeedback">
<div class="code" v-if="!copyFeedback">
{{ regex }}
</div>
<div class="text-success" v-if="copyFeedback">
<span class="glyphicon glyphicon-ok"></span> Copied to clipboard
</div>
</div>
</div>
</body>
<script>
// You can also require other files to run in this process
require('./src/app')
</script>
</html>