Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
7a3198c3
Commit
7a3198c3
authored
Oct 11, 2019
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: linting
parent
5919d721
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
renderer.js
server/modules/rendering/markdown-plantuml/renderer.js
+2
-1
storage.js
server/modules/storage/git/storage.js
+3
-2
No files found.
server/modules/rendering/markdown-plantuml/renderer.js
View file @
7a3198c3
...
...
@@ -166,7 +166,8 @@ function append3bytes (b1, b2, b3) {
return
r
}
function
encode6bit
(
b
)
{
function
encode6bit
(
raw
)
{
let
b
=
raw
if
(
b
<
10
)
{
return
String
.
fromCharCode
(
48
+
b
)
}
...
...
server/modules/storage/git/storage.js
View file @
7a3198c3
...
...
@@ -25,12 +25,13 @@ const getContenType = (filePath) => {
}
const
getPagePath
=
(
filePath
)
=>
{
let
fpath
=
filePath
if
(
process
.
platform
===
'win32'
)
{
f
ileP
ath
=
filePath
.
replace
(
/
\\
/g
,
'/'
)
f
p
ath
=
filePath
.
replace
(
/
\\
/g
,
'/'
)
}
let
meta
=
{
locale
:
'en'
,
path
:
_
.
initial
(
f
ileP
ath
.
split
(
'.'
)).
join
(
''
)
path
:
_
.
initial
(
f
p
ath
.
split
(
'.'
)).
join
(
''
)
}
const
result
=
localeFolderRegex
.
exec
(
meta
.
path
)
if
(
result
[
1
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment