This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
108 lines (91 loc) · 3.22 KB
/
index.php
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php ob_start(); ?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>LaravelRUS UI — Компоненты</title>
<link rel="icon" href="./favicon.png"/>
<!-- Load Vendor Libraries -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/normalize.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,400,400i,700,700i&subset=cyrillic"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i" />
<script src="https://unpkg.com/[email protected]/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<!-- Load an Application files -->
<style><?php
require __DIR__ . '/../dist/laravel-ui.min.css';
copy(__DIR__ . '/../dist/laravel-ui.min.css.map', __DIR__ . '/laravel-ui.min.css.map');
?></style>
<script><?php
require __DIR__ . '/../dist/laravel-ui.min.js';
copy(__DIR__ . '/../dist/laravel-ui.min.js.map', __DIR__ . '/laravel-ui.min.js.map');
?></script>
<!-- An Example styles -->
<style>
#app {
width: 960px;
margin: 50px auto;
}
.examples .button {
min-width: 100px;
}
.examples .input,
.examples .select,
.examples .password {
min-width: 250px;
}
.examples tbody td:last-child {
width: 250px;
}
</style>
</head>
<body>
<main id="app">
<h1>LaravelRUS UI</h1>
<ul>
<li>
<h4>HTML компоненты</h4>
<ul>
<li><a href="#headings">Headings</a></li>
</ul>
</li>
<li>
<h4>Кастомные компоненты</h4>
<ul>
<li><a href="#button">Button</a></li>
<li><a href="#input">Text</a></li>
<li><a href="#password">Password</a></li>
<li><a href="#select">Select + Option</a></li>
<li><a href="#tooltip">Tooltip</a></li>
<li><a href="#checkbox">Checkbox</a></li>
</ul>
</li>
</ul>
<h2 class="underline">HTML Elements</h2>
<!-- HEADINGS -->
<?php require __DIR__ . '/partials/headings.php'; ?>
<h2 class="underline">Custom Elements</h2>
<!-- BUTTON -->
<?php require __DIR__ . '/partials/button.php'; ?>
<!-- TEXT -->
<?php require __DIR__ . '/partials/text.php'; ?>
<!-- PASSWORD -->
<?php require __DIR__ . '/partials/password.php'; ?>
<!-- PASSWORD -->
<?php require __DIR__ . '/partials/select.php'; ?>
<!-- TOOLTIP -->
<?php require __DIR__ . '/partials/tooltip.php'; ?>
<!-- CHECKBOX -->
<?php require __DIR__ . '/partials/checkbox.php'; ?>
</main>
<script>
new Vue({ el: '#app' })
</script>
</body>
</html><?php
$content = ob_get_contents();
// Minimise
// $content = preg_replace('/>\s+</iu', '><', $content);
ob_end_clean();
file_put_contents(__DIR__ . '/index.html', $content);
echo $content;
?>