-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathe_library.php
More file actions
92 lines (75 loc) · 1.82 KB
/
e_library.php
File metadata and controls
92 lines (75 loc) · 1.82 KB
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
<?php
class mentions_library
{
function config()
{
$libraries['ichord.caret'] = [
// Only used in administrative UI of Libraries API.
'name' => 'Caret.js',
'vendor_url' => 'https://github.com/ichord/Caret.js',
'download_url' => 'https://github.com/ichord/Caret.js/archive/master.zip',
'library_path' => '{e_PLUGIN}mentions/js/ichord.caret/',
'version_arguments' => [
'file' => 'dist/jquery.caret.js',
'pattern' => '/@version\s(\d+\.\d+\.\d+)/',
'lines' => 25,
],
'files' => [
'js' => [
'dist/jquery.caret.js' => [
'type' => 'footer'
]
]
],
'variants' => [
'minified' => [
'js' => [
'dist/jquery.caret.min.js' => [
'type' => 'footer'
]
]
]
]
];
$libraries['ichord.atwho'] = [
// Only used in administrative UI of Libraries API.
'name' => 'At.js',
'vendor_url' => 'https://github.com/ichord/At.js',
'download_url' => 'https://github.com/ichord/At.js/archive/master.zip',
'library_path' => '{e_PLUGIN}mentions/js/ichord.atwho/',
'version_arguments' => [
'file' => 'dist/js/jquery.atwho.js',
// * at.js - 1.5.4
'pattern' => '/.*(\d+\.\d+\.\d+)/',
'lines' => 6,
],
'files' => [
'css' => [
'dist/css/jquery.atwho.css' => [
'zone' => 2
]
],
'js' => [
'dist/js/jquery.atwho.js' => [
'type' => 'footer'
]
],
],
'variants' => [
'minified' => [
'css' => [
'dist/css/jquery.atwho.min.css' => [
'zone' => 2
]
],
'js' => [
'dist/js/jquery.atwho.min.js' => [
'type' => 'footer'
]
]
]
]
];
return $libraries;
}
}