forked from cubiq/KiiConf
-
Notifications
You must be signed in to change notification settings - Fork 30
/
layouts.php
46 lines (36 loc) · 1.13 KB
/
layouts.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
<?php
$keyboards = [];
$keyboards['K-Type'][] = 'Standard';
$keyboards['K-Type'][] = 'NoAnimations';
$keyboards['MD1.1'][] = 'Alphabet';
$keyboards['MD1.1'][] = 'AlphabetBlank';
$keyboards['MD1.1'][] = 'Hacker';
$keyboards['MD1.1'][] = 'HackerBlank';
$keyboards['MD1.1'][] = 'Standard';
$keyboards['MD1.1'][] = 'StandardBlank';
$keyboards['MD1'][] = 'Hacker';
$keyboards['MD1'][] = 'HackerBlank';
$keyboards['MD1'][] = 'Standard';
$keyboards['MD1'][] = 'StandardBlank';
$keyboards['MDErgo1'][] = 'Blank';
$keyboards['MDErgo1'][] = 'Default';
$keyboards['WhiteFox'][] = 'Aria';
$keyboards['WhiteFox'][] = 'Iso';
$keyboards['WhiteFox'][] = 'JackofAllTrades';
$keyboards['WhiteFox'][] = 'TheTrueFox';
$keyboards['WhiteFox'][] = 'Vanilla';
$keyboards['WhiteFox'][] = 'Winkeyless';
// TODO Hardcoding until a better solution for duplicates exists.
//$directory = './layouts/*.json';
//
//$files = glob($directory);
//foreach ($files as $layout) {
// $layout = basename($layout, '.json');
//
// list($keyboard, $variant) = explode('-', $layout, 2);
//
// $keyboards[$keyboard][] = $variant;
//}
$out = json_encode($keyboards);
echo $out;
exit;