-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
74 lines (68 loc) · 2.89 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
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-prism-editor/dist/prismeditor.min.css" />
<!-- custom highlighter -->
<link rel="stylesheet" type="text/css" href="https://unpkg.com/prismjs/themes/prism-tomorrow.css" />
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Motor de Inferencia</title>
</head>
<body class="bg-gray-200">
<div class="flex justify-center">
<h1 class="text-5xl text-gray-700 justify-center">Motor de Inferencia - Prolog</h1>
</div>
<div id="app">
<div class="grid grid-cols-2 gap-4 justify-items-auto">
<div class="text-gray-700 bg-gray-400 px-4 py-2 ml-4">
<editor inline-template @text="editor($event)">
<div>
<label class="block text-gray-700 text-sm font-bold mb-2">
{{ title }}
</label>
<prism-editor class="code-editor code-editor-500 bg-gray-100" v-model="code" :highlight="highlighter"
@input="$emit('text', $event)" line-numbers>
</prism-editor>
</div>
</editor>
</div>
<div class="text-gray-700 bg-gray-400 px-4 py-2 mr-4">
<consulta inline-template @response="setResponse($event)" :rules="code">
<div>
<label class="block text-gray-700 text-sm font-bold mb-2">
{{ title }}
</label>
<prism-editor class="code-editor code-editor-200 bg-gray-100" v-model="query" :highlight="highlighter"
line-numbers>
</prism-editor>
<div class="flex justify-end">
<button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 mt-2" @click="submitData()">
Consultar
</button>
</div>
</div>
</consulta>
<respuesta inline-template :response="res">
<div>
<label class="block text-gray-700 text-sm font-bold mb-2">
{{ title }}
</label>
<prism-editor class="code-editor code-editor-100 bg-gray-100" v-model="response" :highlight="highlighter"
:readonly="true" line-numbers>
</prism-editor>
</div>
</respuesta>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-prism-editor"></script>
<script src="https://unpkg.com/prismjs/prism.js"></script>
<script src="https://unpkg.com/[email protected]/components/prism-prolog.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="index.js"></script>
</html>