Skip to content

Commit aef7a2f

Browse files
authored
Merge pull request #267 from NateWr/i8803_ui_library
pkp/pkp-lib#8803 Update documentation for 3.4
2 parents c9a9b2e + bcc277c commit aef7a2f

File tree

164 files changed

+4328
-1493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+4328
-1493
lines changed

public/globals.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ window.pkp = {
1717
id: 20,
1818
roles: [1, 16, 65536, 1048576],
1919
username: 'dbarnes',
20-
preferredName: 'Daniel Barnes'
20+
preferredName: 'Daniel Barnes',
2121
},
2222

2323
/**
@@ -65,7 +65,7 @@ window.pkp = {
6565
DOI_STATUS_SUBMITTED: 2,
6666
DOI_STATUS_REGISTERED: 3,
6767
DOI_STATUS_ERROR: 4,
68-
DOI_STATUS_STALE: 5
68+
DOI_STATUS_STALE: 5,
6969
},
7070

7171
/**
@@ -81,13 +81,14 @@ window.pkp = {
8181
pdf: 'file-pdf-o', // DOCUMENT_TYPE_PDF
8282
word: 'file-word-o', // DOCUMENT_TYPE_WORD
8383
video: 'file-video-o', // DOCUMENT_TYPE_VIDEO
84-
zip: 'file-archive-o' // DOCUMENT_TYPE_ZIP
84+
zip: 'file-archive-o', // DOCUMENT_TYPE_ZIP
8585
},
8686

8787
/**
8888
* Locale keys loaded on the server-side
8989
*/
9090
localeKeys: {
91+
'common.attachFiles': 'Attach Files',
9192
'common.cancel': 'Cancel',
9293
'common.clearSearch': 'Clear search',
9394
'common.close': 'Close',
@@ -139,8 +140,8 @@ window.pkp = {
139140
'form.multilingualProgress': '{$count}/{$total} languages completed',
140141
'form.saved': 'Saved',
141142
'help.help': 'Help',
142-
'validator.required': 'This field is required.'
143-
}
143+
'validator.required': 'This field is required.',
144+
},
144145
};
145146

146147
/**
@@ -150,21 +151,23 @@ window.$.pkp = {
150151
app: {
151152
currentLocale: 'en',
152153
primaryLocale: 'en',
153-
rtlLocales: ['ar']
154+
rtlLocales: ['ar'],
155+
tinyMceContentCSS: 'styles/content.css',
156+
tinyMceOneLineContentCSS: 'styles/content_oneline.css',
154157
},
155158
pkpHandler() {
156159
alert(
157-
'This action can not be completed in the UI library because it requires a legacy JS component that is part of the OJS or OMP application.'
160+
'This action can not be completed in the UI library because it requires a legacy JS component that is part of the OJS, OMP or OPS application.'
158161
);
159162
},
160163
classes: {
161164
Helper: {
162-
// A fake uuid generator to mock the one in the Helper component of the
163-
// OJS/OMP applications. This is not guaranteed to be unique and should
165+
// A fake uuid generator to mock the one in the Helper component of
166+
// OJS, OMP and OPS. This is not guaranteed to be unique and should
164167
// not be used in production
165168
uuid() {
166169
return Math.floor((1 + Math.random()) * 0x10000).toString(16);
167-
}
168-
}
169-
}
170+
},
171+
},
172+
},
170173
};

public/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<title>UI Library - Public Knowledge Project</title>
8-
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic" type="text/css">
8+
<link rel="icon" href="<%= BASE_URL %>pkp-icon.png" type="image/png">
9+
<link rel="stylesheet" href="<%= BASE_URL %>styles/fonts.css" type="text/css">
910
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
1011
<link rel="stylesheet" href="<%= BASE_URL %>highlightjs.css" />
1112
</head>

public/pkp-icon.png

13.5 KB
Loading

public/styles/content.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@import "fonts.css";
2+
3+
html,
4+
body {
5+
font-family: "Noto Sans", "Noto Kufi Arabic", Arial, Helvetica, sans-serif;
6+
font-size: 14px;
7+
line-height: 24px;
8+
background: #fff;
9+
padding: 14px;
10+
margin: 0;
11+
}
12+
13+
p:first-child {
14+
margin-top: 0;
15+
}
16+
17+
span.pkpTag {
18+
padding: 0.5em;
19+
font-size: 10px;
20+
font-weight: 700;
21+
text-transform: uppercase;
22+
color: #777;
23+
}
24+
25+
a {
26+
color: #006798;
27+
}
28+
29+
a:hover,
30+
a:focus {
31+
color: #113241;
32+
}

public/styles/content_oneline.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import "content.css";
2+
3+
html {
4+
padding: 0;
5+
}
6+
7+
.mce-content-body {
8+
height: 40px;
9+
line-height: 40px;
10+
padding: 0;
11+
white-space: nowrap;
12+
overflow: hidden;
13+
}
14+
15+
sup {
16+
position: relative;
17+
top: -0.75em;
18+
vertical-align: top;
19+
font-size: 0.6em;
20+
}
21+
22+
sub {
23+
position: relative;
24+
bottom: -0.75em;
25+
vertical-align: bottom;
26+
font-size: 0.6em;
27+
}

public/styles/fonts.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* noto-sans-regular - vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic */
2+
@font-face {
3+
font-family: 'Noto Sans';
4+
font-style: normal;
5+
font-weight: 400;
6+
src: url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
7+
src: local(''),
8+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
9+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
10+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
11+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
12+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-regular.svg#NotoSans') format('svg'); /* Legacy iOS */
13+
}
14+
15+
/* noto-sans-italic - vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic */
16+
@font-face {
17+
font-family: 'Noto Sans';
18+
font-style: italic;
19+
font-weight: 400;
20+
src: url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.eot'); /* IE9 Compat Modes */
21+
src: local(''),
22+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
23+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.woff2') format('woff2'), /* Super Modern Browsers */
24+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.woff') format('woff'), /* Modern Browsers */
25+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.ttf') format('truetype'), /* Safari, Android, iOS */
26+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-italic.svg#NotoSans') format('svg'); /* Legacy iOS */
27+
}
28+
29+
/* noto-sans-700 - vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic */
30+
@font-face {
31+
font-family: 'Noto Sans';
32+
font-style: normal;
33+
font-weight: 700;
34+
src: url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
35+
src: local(''),
36+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
37+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
38+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
39+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
40+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700.svg#NotoSans') format('svg'); /* Legacy iOS */
41+
}
42+
43+
/* noto-sans-700italic - vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic */
44+
@font-face {
45+
font-family: 'Noto Sans';
46+
font-style: italic;
47+
font-weight: 700;
48+
src: url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.eot'); /* IE9 Compat Modes */
49+
src: local(''),
50+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
51+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.woff2') format('woff2'), /* Super Modern Browsers */
52+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.woff') format('woff'), /* Modern Browsers */
53+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
54+
url('fonts/noto-sans-v11-vietnamese_latin-ext_latin_greek-ext_greek_devanagari_cyrillic-ext_cyrillic-700italic.svg#NotoSans') format('svg'); /* Legacy iOS */
55+
}

public/styles/fonts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The Noto Sans font is distributed under the terms of the [Apache License, 2.0](http://www.apache.org/licenses/LICENSE-2.0).

0 commit comments

Comments
 (0)