Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add crawlable links for many href attributes #307

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs-android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue May 07 11:49:13 CEST 2019
#Thu Sep 08 15:09:04 EDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
34 changes: 17 additions & 17 deletions docs-web/src/main/webapp/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<span class="icon-bar"></span>
</button>

<a class="navbar-brand" href="#">
<a class="navbar-brand" href="http://localhost:8080/src/">
<span ng-if="appName == 'Teedy'">
<span style="color: #2aabd2;">teedy</span>
</span>
Expand All @@ -136,13 +136,13 @@
<div class="collapse navbar-collapse" uib-collapse="isCollapsed">
<ul class="nav navbar-nav" ng-show="!userInfo.anonymous">
<li ui-sref-active="{ active: 'document.**' }">
<a href="#/document"><span class="fas fa-book"></span> {{ 'index.nav_documents' | translate }}</a>
<a href="http://localhost:8080/src/#/document"><span class="fas fa-book"></span> {{ 'index.nav_documents' | translate }}</a>
</li>
<li ui-sref-active="{ active: 'tag.**' }" id="navigation-tag">
<a href="#/tag"><span class="fas fa-tags"></span> {{ 'index.nav_tags' | translate }}</a>
<a href="http://localhost:8080/src/#/tag"><span class="fas fa-tags"></span> {{ 'index.nav_tags' | translate }}</a>
</li>
<li ui-sref-active="{ active: 'user.**', active2: 'group.**' }">
<a href="#/user"><span class="fas fa-user"></span> {{ 'index.nav_users_groups' | translate }}</a>
<a href="http://localhost:8080/src/#/user"><span class="fas fa-user"></span> {{ 'index.nav_users_groups' | translate }}</a>
</li>
</ul>

Expand All @@ -155,12 +155,12 @@
</a>
</li>
<li ui-sref-active="{ active: 'settings.**' }" ng-show="userInfo.username != 'guest'">
<a href="#/settings/account">
<a href="http://localhost:8080/src/#/settings/account">
<span class="fas fa-cog"></span> {{ 'index.nav_settings' | translate }}
</a>
</li>
<li>
<a href="#" ng-click="logout($event)">
<a href="http://localhost:8080/src/" ng-click="logout($event)">
<span class="fas fa-power-off"></span> {{ 'index.logout' | translate }}
</a>
</li>
Expand All @@ -179,7 +179,7 @@
</div>
<ul class="list-inline">
<li uib-dropdown class="dropdown">
<a href uib-dropdown-toggle>
<a href="http://localhost:8080/src/" uib-dropdown-toggle>
<span ng-switch="currentLang">
<span ng-switch-when="en">English</span>
<span ng-switch-when="fr">Français</span>
Expand All @@ -195,16 +195,16 @@
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href ng-click="changeLanguage('en')" ng-class="{ 'bg-info': currentLang == 'en' }">English</a></li>
<li><a href ng-click="changeLanguage('fr')" ng-class="{ 'bg-info': currentLang == 'fr' }">Français</a></li>
<li><a href ng-click="changeLanguage('de')" ng-class="{ 'bg-info': currentLang == 'de' }">Deutsch</a></li>
<li><a href ng-click="changeLanguage('it')" ng-class="{ 'bg-info': currentLang == 'it' }">Italiano</a></li>
<li><a href ng-click="changeLanguage('es')" ng-class="{ 'bg-info': currentLang == 'es' }">Española</a></li>
<li><a href ng-click="changeLanguage('el')" ng-class="{ 'bg-info': currentLang == 'el' }">Ελληνικά</a></li>
<li><a href ng-click="changeLanguage('ru')" ng-class="{ 'bg-info': currentLang == 'ru' }">Pусский</a></li>
<li><a href ng-click="changeLanguage('pl')" ng-class="{ 'bg-info': currentLang == 'pl' }">Polski</a></li>
<li><a href ng-click="changeLanguage('zh_CN')" ng-class="{ 'bg-info': currentLang == 'zh_CN' }">简体中文</a></li>
<li><a href ng-click="changeLanguage('zh_TW')" ng-class="{ 'bg-info': currentLang == 'zh_TW' }">繁體中文</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('en')" ng-class="{ 'bg-info': currentLang == 'en' }">English</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('fr')" ng-class="{ 'bg-info': currentLang == 'fr' }">Français</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('de')" ng-class="{ 'bg-info': currentLang == 'de' }">Deutsch</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('it')" ng-class="{ 'bg-info': currentLang == 'it' }">Italiano</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('es')" ng-class="{ 'bg-info': currentLang == 'es' }">Española</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('el')" ng-class="{ 'bg-info': currentLang == 'el' }">Ελληνικά</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('ru')" ng-class="{ 'bg-info': currentLang == 'ru' }">Pусский</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('pl')" ng-class="{ 'bg-info': currentLang == 'pl' }">Polski</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('zh_CN')" ng-class="{ 'bg-info': currentLang == 'zh_CN' }">简体中文</a></li>
<li><a href="http://localhost:8080/src/" ng-click="changeLanguage('zh_TW')" ng-class="{ 'bg-info': currentLang == 'zh_TW' }">繁體中文</a></li>
</ul>
</li>
<li translate="document.default.footer_sismics"></li>
Expand Down
14 changes: 7 additions & 7 deletions docs-web/src/main/webapp/src/lib/angular.ui-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7586,18 +7586,18 @@ angular.module("uib/template/modal/window.html", []).run(["$templateCache", func

angular.module("uib/template/pager/pager.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("uib/template/pager/pager.html",
"<li ng-class=\"{disabled: noPrevious()||ngDisabled, previous: align}\"><a href ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
"<li ng-class=\"{disabled: noNext()||ngDisabled, next: align}\"><a href ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
"<li ng-class=\"{disabled: noPrevious()||ngDisabled, previous: align}\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
"<li ng-class=\"{disabled: noNext()||ngDisabled, next: align}\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
"");
}]);

angular.module("uib/template/pagination/pagination.html", []).run(["$templateCache", function($templateCache) {
$templateCache.put("uib/template/pagination/pagination.html",
"<li role=\"menuitem\" ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-first\"><a href ng-click=\"selectPage(1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('first')}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::directionLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-prev\"><a href ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
"<li role=\"menuitem\" ng-repeat=\"page in pages track by $index\" ng-class=\"{active: page.active,disabled: ngDisabled&&!page.active}\" class=\"pagination-page\"><a href ng-click=\"selectPage(page.number, $event)\" ng-disabled=\"ngDisabled&&!page.active\" uib-tabindex-toggle>{{page.text}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::directionLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-next\"><a href ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-last\"><a href ng-click=\"selectPage(totalPages, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('last')}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-first\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('first')}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::directionLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-prev\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(page - 1, $event)\" ng-disabled=\"noPrevious()||ngDisabled\" uib-tabindex-toggle>{{::getText('previous')}}</a></li>\n" +
"<li role=\"menuitem\" ng-repeat=\"page in pages track by $index\" ng-class=\"{active: page.active,disabled: ngDisabled&&!page.active}\" class=\"pagination-page\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(page.number, $event)\" ng-disabled=\"ngDisabled&&!page.active\" uib-tabindex-toggle>{{page.text}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::directionLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-next\"><a href=\"http://localhost:8080/src/\" ng-click=\"selectPage(page + 1, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('next')}}</a></li>\n" +
"<li role=\"menuitem\" ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noNext()||ngDisabled}\" class=\"pagination-last\"><a href=\"http://localhost:8080/src/\" ng-click=\"(totalPages, $event)\" ng-disabled=\"noNext()||ngDisabled\" uib-tabindex-toggle>{{::getText('last')}}</a></li>\n" +
"");
}]);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="well well-3d" style="background-color: #f6f9fc" id="quick-upload-zone">
<div class="pull-right" ng-show="files.length > 0">
<a href class="btn btn-default" ng-init="selectAll = true" ng-click="changeChecked(selectAll); selectAll = !selectAll">
<a href="http://localhost:8080/src/" class="btn btn-default" ng-init="selectAll = true" ng-click="changeChecked(selectAll); selectAll = !selectAll">
<span class="far" ng-class="{ 'fa-check-square': selectAll, 'fa-square': !selectAll }"></span>
{{ selectAll ? 'document.default.select_all' : 'document.default.select_none' | translate }}
</a>
Expand All @@ -16,7 +16,7 @@ <h3 class="well-3d-header text-muted">
ngf-allow-dir="false">
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 text-center" ng-repeat="file in files">
<div class="thumbnail" ng-class="{ 'thumbnail-checked': file.checked }" ng-if="file.id">
<a class="file-thumbnail" ng-click="openFile(file)">
<a href="http://localhost:8080/src/" class="file-thumbnail" ng-click="openFile(file)">
<img ng-src="../api/file/{{ file.id }}/data?size=thumb" uib-tooltip="{{ file.mimetype }} | {{ file.size | filesize }}" tooltip-placement="top" />
</a>
<div class="file-info">
Expand Down Expand Up @@ -114,6 +114,6 @@ <h3 class="well-3d-header text-muted">

<div ui-view="file"></div>

<a href class="feedback" ng-if="userInfo.base_functions.indexOf('ADMIN') != -1" ng-click="openFeedback()">
<a href="http://localhost:8080/src/" class="feedback" ng-if="userInfo.base_functions.indexOf('ADMIN') != -1" ng-click="openFeedback()">
{{ 'document.default.feedback' | translate }}
</a>
12 changes: 6 additions & 6 deletions docs-web/src/main/webapp/src/partial/docs/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<!-- Main new document button -->
<div class="text-center mb-19">
<div class="btn-group" uib-dropdown id="document-add-btn">
<a href="#/document/add" class="btn btn-primary">
<a href="http://localhost:8080/src/#/document/add" class="btn btn-primary">
<span class="fas fa-plus"></span> {{ 'document.add_document' | translate }}
</a>
<button type="button" class="btn btn-primary" uib-dropdown-toggle>
<span class="caret"></span>
</button>
<ul uib-dropdown-menu>
<li><a href ngf-select="importEml($file)">{{ 'document.import_eml' | translate }}</a></li>
<li><a href="http://localhost:8080/src/" ngf-select="importEml($file)">{{ 'document.import_eml' | translate }}</a></li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -162,9 +162,9 @@

<!-- Navigation breadcrumb -->
<ol class="breadcrumb breadcrumb-navigation pull-left mt-10">
<li><a href ng-click="navigateToTag()"><span class="fas fa-home"></span></a></li>
<li><a href="http://localhost:8080/src/" ng-click="navigateToTag()"><span class="fas fa-home"></span></a></li>
<li ng-repeat="tag in getCurrentNavigation()" ng-class="{ active: tag.id == navigatedTag.id }">
<a class="label" ng-style="{ 'background-color': tag.color }" ng-if="tag.id != navigatedTag.id" href ng-click="navigateToTag(tag)">{{ tag.name }}</a>
<a href="http://localhost:8080/src/" class="label" ng-style="{ 'background-color': tag.color }" ng-if="tag.id != navigatedTag.id" href ng-click="navigateToTag(tag)">{{ tag.name }}</a>
<span class="label" ng-style="{ 'background-color': tag.color }" ng-if="tag.id == navigatedTag.id">{{ tag.name }}</span>
</li>
</ol>
Expand Down Expand Up @@ -253,7 +253,7 @@
{{ document.title }} ({{ document.file_count }})
<span class="fas fa-share" ng-if="document.shared" uib-tooltip="{{ 'document.shared' | translate }}"></span>
<span class="fas fa-random" ng-if="document.active_route" uib-tooltip="{{ document.current_step_name }}"></span>
<a href="#/document/view/{{ document.id }}" target="_blank" ng-click="$event.stopPropagation()"><span class="fas fa-link"></span></a>
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}" target="_blank" ng-click="$event.stopPropagation()"><span class="fas fa-link"></span></a>

<div class="pull-right text-muted small" uib-tooltip="{{ 'document.last_updated' | translate: { date: document.update_date } }}">
{{ document.create_date | timeAgo: dateFormat }}
Expand Down Expand Up @@ -285,7 +285,7 @@
<div class="col-md-12 row">
<div ng-repeat-start="document in documents" class="col-md-4">
<div class="thumbnail" ng-class="{ active: $stateParams.id == document.id }">
<a href="#/document/view/{{ document.id }}" class="file-thumbnail">
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}" class="file-thumbnail">
<img class="img-responsive" ng-if="document.file_id" ng-src="../api/file/{{ document.file_id }}/data?size=thumb" />
</a>

Expand Down
14 changes: 7 additions & 7 deletions docs-web/src/main/webapp/src/partial/docs/document.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div ng-show="document">
<div class="pull-right btn-group">
<button class="btn btn-danger" ng-show="document.writable" ng-click="deleteDocument(document)"><span class="fas fa-trash"></span> {{ 'delete' | translate }}</button>
<a href="#/document/edit/{{ document.id }}" ng-show="document.writable" class="btn btn-primary"><span class="fas fa-pencil-alt"></span> {{ 'edit' | translate }}</a>
<a href="http://localhost:8080/src/#/document/edit/{{ document.id }}" ng-show="document.writable" class="btn btn-primary"><span class="fas fa-pencil-alt"></span> {{ 'edit' | translate }}</a>
</div>

<div class="pull-right dropdown" uib-dropdown>
Expand All @@ -33,7 +33,7 @@
</a>
</li>
<li>
<a href ng-click="exportPdf()">
<a href="http://localhost:8080/src/" ng-click="exportPdf()">
<span class="fas fa-file-pdf"></span>
{{ 'document.view.export_pdf' | translate }}
</a>
Expand All @@ -46,7 +46,7 @@
<h1>
{{ document.title }}
<small uib-tooltip="{{ 'document.last_updated' | translate: { date: document.update_date } }}">{{ document.create_date | date: dateFormat }}
{{ 'document.view.by_creator' | translate }} <a href="#/user/{{ document.creator }}">{{ document.creator }}</a></small>
{{ 'document.view.by_creator' | translate }} <a href="http://localhost:8080/src/#/user/{{ document.creator }}">{{ document.creator }}</a></small>
</h1>

<p ng-show="document.writable">
Expand All @@ -72,22 +72,22 @@ <h1>
<div class="col-md-9">
<ul class="nav nav-tabs">
<li ng-class="{ active: $state.current.name == 'document.view.content' }">
<a href="#/document/view/{{ document.id }}/content">
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}/content">
<span class="fas fa-file"></span> {{ 'document.view.content' | translate }}
</a>
</li>
<li ng-class="{ active: $state.current.name == 'document.view.workflow' }">
<a href="#/document/view/{{ document.id }}/workflow">
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}/workflow">
<span class="fas fa-random"></span> {{ 'document.view.workflow' | translate }}
</a>
</li>
<li ng-class="{ active: $state.current.name == 'document.view.permissions' }">
<a href="#/document/view/{{ document.id }}/permissions">
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}/permissions">
<span class="fas fa-user"></span> {{ 'document.view.permissions' | translate }}
</a>
</li>
<li ng-class="{ active: $state.current.name == 'document.view.activity' }">
<a href="#/document/view/{{ document.id }}/activity">
<a href="http://localhost:8080/src/#/document/view/{{ document.id }}/activity">
<span class="fas fa-tasks"></span> {{ 'document.view.activity' | translate }}
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>{{ 'document.view.permissions.inherited_tags' | translate }}</h3>

<tr ng-repeat="(id, acl) in inheritedAcls">
<td>
<a href="#/tag/{{ acl[0].source_id }}">
<a href="http://localhost:8080/src/#/tag/{{ acl[0].source_id }}">
<span class="fas fa-tags" ng-style="{ 'color': acl[0].source_color }"></span>&nbsp;
{{ acl[0].source_name }}
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<label for="inputRouteModel" class="col-sm-3">
{{ 'document.view.workflow.workflow_start_label' | translate }}
<p ng-if="userInfo.base_functions.indexOf('ADMIN') != -1">
<a href="#/settings/workflow">{{ 'document.view.workflow.add_more_workflow' | translate }}</a>
<a href="http://localhost:8080/src/#/settings/workflow">{{ 'document.view.workflow.add_more_workflow' | translate }}</a>
</p>
</label>
<div class="col-sm-6">
Expand Down Expand Up @@ -69,7 +69,7 @@
{{ 'workflow_transition.' + step.transition | translate }}
{{ step.end_date | timeAgo: dateTimeFormat }}
by
<a href="#/user/{{ step.validator_username }}" class="label label-default">{{ step.validator_username }}</a>
<a href="http://localhost:8080/src/#/user/{{ step.validator_username }}" class="label label-default">{{ step.validator_username }}</a>
<span ng-show="step.comment" class="text-">
<br/><em>{{ step.comment }}</em>
</span>
Expand Down
2 changes: 1 addition & 1 deletion docs-web/src/main/webapp/src/partial/docs/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

<div class="col-md-6 text-right btn-password-lost">
<div class="well-sm">
<a href ng-click="openPasswordLost()">{{ 'login.password_lost_btn' | translate }}</a>
<a href="http://localhost:8080/src/" ng-click="openPasswordLost()">{{ 'login.password_lost_btn' | translate }}</a>
</div>
</div>
</div>
Expand Down
Loading