refactor: moved server content to /server
This commit is contained in:
4
server/app/content/create.md
Normal file
4
server/app/content/create.md
Normal file
@@ -0,0 +1,4 @@
|
||||
<!-- TITLE: {TITLE} -->
|
||||
<!-- SUBTITLE: A quick summary of {TITLE} -->
|
||||
|
||||
# Header
|
85
server/app/data.yml
Normal file
85
server/app/data.yml
Normal file
@@ -0,0 +1,85 @@
|
||||
# ---------------------------------
|
||||
# DO NOT EDIT THIS FILE!
|
||||
# This is reserved for system use!
|
||||
# ---------------------------------
|
||||
name: Wiki.js
|
||||
capabilities:
|
||||
guest: true
|
||||
rights: true
|
||||
manyAuthProviders: true
|
||||
defaults:
|
||||
config:
|
||||
title: Wiki
|
||||
host: http://localhost
|
||||
port: 80
|
||||
paths:
|
||||
repo: ./repo
|
||||
data: ./data
|
||||
uploads:
|
||||
maxImageFileSize: 3,
|
||||
maxOtherFileSize: 100
|
||||
lang: en
|
||||
public: false
|
||||
auth:
|
||||
defaultReadAccess: false
|
||||
local:
|
||||
enabled: true
|
||||
microsoft:
|
||||
enabled: false
|
||||
google:
|
||||
enabled: false
|
||||
facebook:
|
||||
enabled: false
|
||||
github:
|
||||
enabled: false
|
||||
slack:
|
||||
enabled: false
|
||||
ldap:
|
||||
enabled: false
|
||||
azure:
|
||||
enabled: false
|
||||
db: mongodb://localhost/wiki
|
||||
sessionSecret: null
|
||||
admin: null
|
||||
git:
|
||||
url: null
|
||||
branch: master
|
||||
auth:
|
||||
type: basic
|
||||
username: null
|
||||
password: null
|
||||
privateKey: null
|
||||
sslVerify: true
|
||||
serverEmail: wiki@example.com
|
||||
showUserEmail: true
|
||||
features:
|
||||
mathjax: true
|
||||
externalLogging:
|
||||
bugsnap: false
|
||||
loggly: false
|
||||
papertrail: false
|
||||
rollbar: false
|
||||
sentry: false
|
||||
langs:
|
||||
-
|
||||
id: en
|
||||
name: English
|
||||
-
|
||||
id: fr
|
||||
name: French - Français
|
||||
-
|
||||
id: de
|
||||
name: German - Deutsch
|
||||
-
|
||||
id: ko
|
||||
name: Korean - 한국어
|
||||
-
|
||||
id: pt
|
||||
name: Portuguese - Português
|
||||
-
|
||||
id: ru
|
||||
name: Russian - Русский
|
||||
-
|
||||
id: es
|
||||
name: Spanish - Español
|
||||
# ---------------------------------
|
9
server/app/regex.js
Normal file
9
server/app/regex.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
arabic: /([\u0600-\u06ff]|[\u0750-\u077f]|[\ufb50-\ufc3f]|[\ufe70-\ufefc])/,
|
||||
cjk: /([\u4E00-\u9FBF]|[\u3040-\u309F\u30A0-\u30FF]|[ㄱ-ㅎ가-힣ㅏ-ㅣ])/,
|
||||
youtube: /(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/,
|
||||
vimeo: /vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^/]*)\/videos\/|album\/(?:\d+)\/video\/|)(\d+)(?:$|\/|\?)/,
|
||||
dailymotion: /(?:dailymotion\.com(?:\/embed)?(?:\/video|\/hub)|dai\.ly)\/([0-9a-z]+)(?:[-_0-9a-zA-Z]+(?:#video=)?([a-z0-9]+)?)?/
|
||||
}
|
Reference in New Issue
Block a user