sismics docs -> teedy
@@ -82,7 +82,7 @@ public class ThemeResource extends BaseResource {
|
||||
public Response get() {
|
||||
JsonObject themeConfig = getThemeConfig();
|
||||
JsonObjectBuilder json = Json.createObjectBuilder();
|
||||
json.add("name", themeConfig.getString("name", "Sismics Docs"));
|
||||
json.add("name", themeConfig.getString("name", "Teedy"));
|
||||
json.add("color", themeConfig.getString("color", "#ffffff"));
|
||||
json.add("css", themeConfig.getString("css", ""));
|
||||
return Response.ok().entity(json.build()).build();
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
@@ -5,7 +5,7 @@
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
version="3.0"
|
||||
metadata-complete="true">
|
||||
<display-name>Docs</display-name>
|
||||
<display-name>Teedy</display-name>
|
||||
|
||||
<!-- Proper loader/unloader of ImageIO plugins -->
|
||||
<listener>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
The web client and Android application for **Sismics Docs** are only examples
|
||||
The web client and Android application for **Teedy** are only examples
|
||||
of what is possible with the provided REST API. Everything you see in those apps are
|
||||
accessible using the API.
|
||||
|
||||
@@ -6,8 +6,8 @@ This documentation is divided in two parts. The first will get you started on es
|
||||
steps like authentication and the second part is a full reference of every endpoints.
|
||||
|
||||
## API URL
|
||||
The base URL depends on your server. If your instance of Docs is accessible through
|
||||
`https://docs.mycompany.com`, then the base API URL is `https://docs.mycompany.com/api`.
|
||||
The base URL depends on your server. If your instance of Teedy is accessible through
|
||||
`https://teedy.mycompany.com`, then the base API URL is `https://teedy.mycompany.com/api`.
|
||||
|
||||
## Verbs and status codes
|
||||
The API uses restful verbs.
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"url": "git://github.com/sismics/docs.git"
|
||||
},
|
||||
"apidoc": {
|
||||
"name": "Sismics Docs API",
|
||||
"title": "Sismics Docs API",
|
||||
"name": "Teedy API",
|
||||
"title": "Teedy API",
|
||||
"url": "/api",
|
||||
"template": {
|
||||
"withCompare": false,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Sismics Docs application.
|
||||
* Teedy application.
|
||||
*/
|
||||
angular.module('docs',
|
||||
// Dependencies
|
||||
|
||||
@@ -29,7 +29,7 @@ angular.module('docs').controller('SettingsConfig', function($scope, $rootScope,
|
||||
|
||||
// Update the theme
|
||||
$scope.update = function () {
|
||||
$scope.theme.name = $scope.theme.name.length === 0 ? 'Sismics Docs' : $scope.theme.name;
|
||||
$scope.theme.name = $scope.theme.name.length === 0 ? 'Teedy' : $scope.theme.name;
|
||||
Restangular.one('theme').post('', $scope.theme).then(function () {
|
||||
var stylesheet = $('#theme-stylesheet')[0];
|
||||
stylesheet.href = stylesheet.href.replace(/\?.*|$/, '?' + new Date().getTime());
|
||||
|
||||
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html ng-app="docs">
|
||||
<head>
|
||||
<title ng-bind-template="{{ pageTitle ? pageTitle : appName }}">Sismics Docs</title>
|
||||
<title ng-bind-template="{{ pageTitle ? pageTitle : appName }}">Teedy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
@@ -121,15 +121,11 @@
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<div class="hidden-xs navbar-text navbar-logo">
|
||||
<img src="../api/theme/image/logo" />
|
||||
</div>
|
||||
|
||||
<a class="navbar-brand" href="#">
|
||||
<span ng-if="appName == 'Sismics Docs'">
|
||||
<span style="color: #e43935;">Sismics</span> <span style="color: #2aabd2;">Docs</span>
|
||||
<span ng-if="appName == 'Teedy'">
|
||||
<span style="color: #2aabd2;">teedy</span>
|
||||
</span>
|
||||
<span ng-if="appName != 'Sismics Docs'" style="color: #888;">{{ appName }}</span>
|
||||
<span ng-if="appName != 'Teedy'" style="color: #888;">{{ appName }}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**!
|
||||
* =======================================================================
|
||||
* Sismics Docs patch applied to encode filenames with encodeURIComponent.
|
||||
* =======================================================================
|
||||
* ================================================================
|
||||
* Teedy patch applied to encode filenames with encodeURIComponent.
|
||||
* ================================================================
|
||||
*
|
||||
* AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort,
|
||||
* progress, resize, thumbnail, preview, validation and CORS
|
||||
|
||||
@@ -466,9 +466,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Geben Sie uns Feedback",
|
||||
"message": "Irgendwelche Vorschläge oder Fragen zu Sismics Docs? Wir hören Ihnen gerne zu!",
|
||||
"message": "Irgendwelche Vorschläge oder Fragen zu Teedy? Wir hören Ihnen gerne zu!",
|
||||
"sent_title": "Feedback gesendet",
|
||||
"sent_message": "Vielen Dank für Ihr Feedback! Es wird uns helfen, Sismics Docs noch besser zu machen."
|
||||
"sent_message": "Vielen Dank für Ihr Feedback! Es wird uns helfen, Teedy noch besser zu machen."
|
||||
},
|
||||
"import": {
|
||||
"title": "Wird importiert",
|
||||
|
||||
@@ -471,9 +471,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Give us a feedback",
|
||||
"message": "Any suggestion or question about Sismics Docs? We listen to you!",
|
||||
"message": "Any suggestion or question about Teedy? We listen to you!",
|
||||
"sent_title": "Feedback sent",
|
||||
"sent_message": "Thank you for your feedback! It will help us make Sismics Docs even better."
|
||||
"sent_message": "Thank you for your feedback! It will help us make Teedy even better."
|
||||
},
|
||||
"import": {
|
||||
"title": "Importing",
|
||||
@@ -567,11 +567,11 @@
|
||||
"onboarding": {
|
||||
"step1": {
|
||||
"title": "First time?",
|
||||
"description": "If it's your first time on Sismics Docs, click the Next button, otherwise feel free to close me."
|
||||
"description": "If it's your first time on Teedy, click the Next button, otherwise feel free to close me."
|
||||
},
|
||||
"step2": {
|
||||
"title": "Documents",
|
||||
"description": "Sismics Docs is organized in documents and each document contains multiple files."
|
||||
"description": "Teedy is organized in documents and each document contains multiple files."
|
||||
},
|
||||
"step3": {
|
||||
"title": "Files",
|
||||
|
||||
@@ -471,9 +471,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Donnez-nous votre avis",
|
||||
"message": "Vous avez des suggestions ou des questions à propos de Sismics Docs ? Nous vous écoutons !",
|
||||
"message": "Vous avez des suggestions ou des questions à propos de Teedy ? Nous vous écoutons !",
|
||||
"sent_title": "Avis envoyé",
|
||||
"sent_message": "Merci pour votre avis ! Cela nous aidera à améliorer Sismics Docs."
|
||||
"sent_message": "Merci pour votre avis ! Cela nous aidera à améliorer Teedy."
|
||||
},
|
||||
"import": {
|
||||
"title": "Import en cours",
|
||||
@@ -567,11 +567,11 @@
|
||||
"onboarding": {
|
||||
"step1": {
|
||||
"title": "Première fois ici ?",
|
||||
"description": "Si vous utilisez Sismics Docs pour la première fois, cliquez sur le bouton Suivant. Sinon, n'hésitez pas à me fermer."
|
||||
"description": "Si vous utilisez Teedy pour la première fois, cliquez sur le bouton Suivant. Sinon, n'hésitez pas à me fermer."
|
||||
},
|
||||
"step2": {
|
||||
"title": "Documents",
|
||||
"description": "Sismics Docs est organisé en documents et chaque document contient plusieurs fichiers."
|
||||
"description": "Teedy est organisé en documents et chaque document contient plusieurs fichiers."
|
||||
},
|
||||
"step3": {
|
||||
"title": "Fichiers",
|
||||
|
||||
@@ -404,9 +404,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Оставьте нам ваше мнение",
|
||||
"message": "Любое предложение или вопрос о Sismics Docs? Мы слушаем вас!",
|
||||
"message": "Любое предложение или вопрос о Teedy? Мы слушаем вас!",
|
||||
"sent_title": "Обратная связь отправлена",
|
||||
"sent_message": "Спасибо за ваш отзыв! Это поможет нам улучшить работу Sismics Docs."
|
||||
"sent_message": "Спасибо за ваш отзыв! Это поможет нам улучшить работу Teedy."
|
||||
},
|
||||
"import": {
|
||||
"title": "Импорт",
|
||||
|
||||
@@ -404,9 +404,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "欢迎提供反馈意见",
|
||||
"message": "您是否对Sismics Docs有任何建议或疑问?我们愿意倾听您的反馈意见!",
|
||||
"message": "您是否对Teedy有任何建议或疑问?我们愿意倾听您的反馈意见!",
|
||||
"sent_title": "反馈意见已发送",
|
||||
"sent_message": "非常感谢您的反馈意见!这将帮我们进一步改进Sismics Docs从而更好的为您提供服务。"
|
||||
"sent_message": "非常感谢您的反馈意见!这将帮我们进一步改进Teedy从而更好的为您提供服务。"
|
||||
},
|
||||
"import": {
|
||||
"title": "输入",
|
||||
|
||||
@@ -404,9 +404,9 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "歡迎提供反饋意見",
|
||||
"message": "對Sismics Docs文檔管理系統有任何建議或疑問?我們靜候您的反饋意見!",
|
||||
"message": "對Teedy文檔管理系統有任何建議或疑問?我們靜候您的反饋意見!",
|
||||
"sent_title": "反饋已發送",
|
||||
"sent_message": "感謝您的反饋意見!這將幫助我們進一步優化Sismics Docs文檔管理系統以便更好的為您提供服務。"
|
||||
"sent_message": "感謝您的反饋意見!這將幫助我們進一步優化Teedy文檔管理系統以便更好的為您提供服務。"
|
||||
},
|
||||
"import": {
|
||||
"title": "輸入",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Sismics Docs",
|
||||
"short_name": "Sismics Docs",
|
||||
"name": "Teedy",
|
||||
"short_name": "Teedy",
|
||||
"theme_color": "#2ab2dc",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="row mt-30 mb-19" ng-if="secret">
|
||||
<div class="col-sm-3">
|
||||
<p translate="settings.security.secret_key" translate-values="{ secret: secret }"></p>
|
||||
<qrcode data="otpauth://totp/Sismics%20Docs?secret={{ secret }}" size="200"></qrcode>
|
||||
<qrcode data="otpauth://totp/Teedy?secret={{ secret }}" size="200"></qrcode>
|
||||
<p class="text-danger">
|
||||
<strong>{{ 'settings.security.secret_key_warning' | translate }}</strong>
|
||||
</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html ng-app="share">
|
||||
<head>
|
||||
<title ng-bind-template="{{ appName }}">Sismics Docs</title>
|
||||
<title ng-bind-template="{{ appName }}">Teedy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
@@ -49,11 +49,12 @@
|
||||
<body translate-cloak ng-cloak>
|
||||
<div class="navbar navbar-inverse" role="navigation">
|
||||
<div class="navbar-header">
|
||||
<div class="hidden-xs navbar-text navbar-logo">
|
||||
<img src="../api/theme/image/logo" />
|
||||
</div>
|
||||
|
||||
<a class="navbar-brand" href="#"> {{ appName }}</a>
|
||||
<a class="navbar-brand" href="#">
|
||||
<span ng-if="appName == 'Teedy'">
|
||||
<span style="color: #2aabd2;">teedy</span>
|
||||
</span>
|
||||
<span ng-if="appName != 'Teedy'" style="color: #888;">{{ appName }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -678,7 +678,8 @@ input[readonly].share-link {
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
}
|
||||
|
||||
.nav > li {
|
||||
|
||||
@@ -37,7 +37,7 @@ public class TestThemeResource extends BaseJerseyTest {
|
||||
// Get the theme configuration anonymously
|
||||
JsonObject json = target().path("/theme").request()
|
||||
.get(JsonObject.class);
|
||||
Assert.assertEquals("Sismics Docs", json.getString("name"));
|
||||
Assert.assertEquals("Teedy", json.getString("name"));
|
||||
Assert.assertEquals("#ffffff", json.getString("color"));
|
||||
Assert.assertEquals("", json.getString("css"));
|
||||
|
||||
|
||||