mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge branch 'master-redesign' of https://github.com/sharelatex/web-sharelatex into master-redesign
This commit is contained in:
commit
533b51146e
9 changed files with 28 additions and 15 deletions
|
@ -18,6 +18,8 @@ for path in [
|
||||||
"#{jsPath}libs/require.js",
|
"#{jsPath}libs/require.js",
|
||||||
"#{jsPath}ide.js",
|
"#{jsPath}ide.js",
|
||||||
"#{jsPath}main.js",
|
"#{jsPath}main.js",
|
||||||
|
"#{jsPath}libs.js",
|
||||||
|
"#{jsPath}ace/ace.js",
|
||||||
"#{jsPath}libs/pdf.js",
|
"#{jsPath}libs/pdf.js",
|
||||||
"#{jsPath}libs/pdf.worker.js",
|
"#{jsPath}libs/pdf.worker.js",
|
||||||
"/stylesheets/style.css"
|
"/stylesheets/style.css"
|
||||||
|
|
|
@ -53,7 +53,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
- if(typeof(suppressFooter) == "undefined")
|
- if(typeof(suppressFooter) == "undefined")
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.requirejs = {
|
window.requirejs = {
|
||||||
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'app/main.js')}",
|
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'app/main.js')}-#{fingerprint(jsPath + 'libs.js')}",
|
||||||
"paths" : {
|
"paths" : {
|
||||||
"moment": "libs/moment-2.7.0"
|
"moment": "libs/moment-2.7.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ block content
|
||||||
"mathjax": "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML",
|
"mathjax": "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML",
|
||||||
"moment": "libs/moment-2.7.0"
|
"moment": "libs/moment-2.7.0"
|
||||||
},
|
},
|
||||||
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}",
|
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}",
|
||||||
"waitSeconds": 0,
|
"waitSeconds": 0,
|
||||||
"shim": {
|
"shim": {
|
||||||
"libs/pdfListView/PdfListView": {
|
"libs/pdfListView/PdfListView": {
|
||||||
|
@ -105,6 +105,7 @@ block content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
window.aceFingerprint = "#{fingerprint(jsPath + 'ace/ace.js')}"
|
||||||
|
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
ga('send', 'event', 'editor-interaction', 'editor-opened')
|
ga('send', 'event', 'editor-interaction', 'editor-opened')
|
||||||
|
@ -117,7 +118,7 @@ block content
|
||||||
window.pdfJsWorkerPath = "#{pdfJsWorkerPath}";
|
window.pdfJsWorkerPath = "#{pdfJsWorkerPath}";
|
||||||
|
|
||||||
script(
|
script(
|
||||||
data-main=jsPath+'ide.js',
|
data-main=jsPath+"ide.js",
|
||||||
baseurl=jsPath,
|
baseurl=jsPath,
|
||||||
data-ace-base=jsPath+'ace',
|
data-ace-base=jsPath+'ace',
|
||||||
src=jsPath+'libs/require.js?fingerprint='+fingerprint(jsPath + 'libs/require.js')
|
src=jsPath+'libs/require.js?fingerprint='+fingerprint(jsPath + 'libs/require.js')
|
||||||
|
|
|
@ -122,14 +122,14 @@
|
||||||
select-all,
|
select-all,
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
)
|
)
|
||||||
span.header Title
|
span.header.clickable Title
|
||||||
i.tablesort.fa(ng-class="getSortIconClass('name')")
|
i.tablesort.fa(ng-class="getSortIconClass('name')")
|
||||||
.col-md-2(ng-click="changePredicate('accessLevel')")
|
.col-md-2(ng-click="changePredicate('accessLevel')")
|
||||||
span.header Owner
|
span.header.clickable Owner
|
||||||
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
|
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
|
||||||
.col-md-4(ng-click="changePredicate('lastUpdated')")
|
.col-md-4(ng-click="changePredicate('lastUpdated')")
|
||||||
span.header Last Modified
|
span.header.clickable Last Modified
|
||||||
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
|
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
|
||||||
li.project_entry.container-fluid(
|
li.project_entry.container-fluid(
|
||||||
ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
|
ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
|
||||||
ng-controller="ProjectListItemController"
|
ng-controller="ProjectListItemController"
|
||||||
|
|
|
@ -3,7 +3,6 @@ define [
|
||||||
"modules/recursionHelper"
|
"modules/recursionHelper"
|
||||||
"utils/underscore"
|
"utils/underscore"
|
||||||
], () ->
|
], () ->
|
||||||
|
|
||||||
App = angular.module("SharelatexApp", [
|
App = angular.module("SharelatexApp", [
|
||||||
"ui.bootstrap"
|
"ui.bootstrap"
|
||||||
"autocomplete"
|
"autocomplete"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
define [
|
define [
|
||||||
"ide/clone/controllers/CloneProjectController"
|
"ide/clone/controllers/CloneProjectController"
|
||||||
"ide/clone/controllers/CloneProjectModalController"
|
"ide/clone/controllers/CloneProjectModalController"
|
||||||
]
|
], () ->
|
|
@ -10,6 +10,14 @@ define [
|
||||||
], (App, Ace, SearchBox, UndoManager, AutoCompleteManager, SpellCheckManager, HighlightsManager, CursorPositionManager) ->
|
], (App, Ace, SearchBox, UndoManager, AutoCompleteManager, SpellCheckManager, HighlightsManager, CursorPositionManager) ->
|
||||||
EditSession = ace.require('ace/edit_session').EditSession
|
EditSession = ace.require('ace/edit_session').EditSession
|
||||||
|
|
||||||
|
# Ace loads its script itself, so we need to hook in to be able to clear
|
||||||
|
# the cache.
|
||||||
|
if !ace.config._moduleUrl?
|
||||||
|
ace.config._moduleUrl = ace.config.moduleUrl
|
||||||
|
ace.config.moduleUrl = (args...) ->
|
||||||
|
url = ace.config._moduleUrl(args...) + "?fingerprint=#{window.aceFingerprint}"
|
||||||
|
return url
|
||||||
|
|
||||||
App.directive "aceEditor", ["$timeout", "$compile", "$rootScope", ($timeout, $compile, $rootScope) ->
|
App.directive "aceEditor", ["$timeout", "$compile", "$rootScope", ($timeout, $compile, $rootScope) ->
|
||||||
monkeyPatchSearch($rootScope, $compile)
|
monkeyPatchSearch($rootScope, $compile)
|
||||||
|
|
||||||
|
@ -73,7 +81,7 @@ define [
|
||||||
# Make '/' work for search in vim mode.
|
# Make '/' work for search in vim mode.
|
||||||
editor.showCommandLine = (arg) =>
|
editor.showCommandLine = (arg) =>
|
||||||
if arg == "/"
|
if arg == "/"
|
||||||
Ace.require("ace/ext/searchbox").Search(editor, true)
|
ace.require("ace/ext/searchbox").Search(editor, true)
|
||||||
|
|
||||||
if attrs.resizeOn?
|
if attrs.resizeOn?
|
||||||
for event in attrs.resizeOn.split(",")
|
for event in attrs.resizeOn.split(",")
|
||||||
|
|
|
@ -84,11 +84,11 @@ define [
|
||||||
|
|
||||||
$scope.getSortIconClass = (column)->
|
$scope.getSortIconClass = (column)->
|
||||||
if column == $scope.predicate and $scope.reverse
|
if column == $scope.predicate and $scope.reverse
|
||||||
return "fa-sort-down"
|
return "fa-caret-down"
|
||||||
else if column == $scope.predicate and !$scope.reverse
|
else if column == $scope.predicate and !$scope.reverse
|
||||||
return "fa-sort-up"
|
return "fa-caret-up"
|
||||||
else
|
else
|
||||||
return "fa-sort"
|
return ""
|
||||||
|
|
||||||
$scope.clearSearchText = () ->
|
$scope.clearSearchText = () ->
|
||||||
$scope.searchText = ""
|
$scope.searchText = ""
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.img-circle {
|
.img-circle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
Loading…
Reference in a new issue