mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 08:23:36 -05:00
initial publish modal setup
This commit is contained in:
parent
bcb025e706
commit
a250004036
6 changed files with 27 additions and 2 deletions
|
@ -14,6 +14,8 @@ module.exports = Features =
|
||||||
return Settings.enableGithubSync
|
return Settings.enableGithubSync
|
||||||
when 'v1-return-message'
|
when 'v1-return-message'
|
||||||
return Settings.accountMerge? and Settings.overleaf?
|
return Settings.accountMerge? and Settings.overleaf?
|
||||||
|
when 'publish-modal'
|
||||||
|
return Settings.showPublishModal
|
||||||
when 'custom-togglers'
|
when 'custom-togglers'
|
||||||
return Settings.overleaf?
|
return Settings.overleaf?
|
||||||
else
|
else
|
||||||
|
|
|
@ -55,6 +55,7 @@ block content
|
||||||
include ./editor/header
|
include ./editor/header
|
||||||
|
|
||||||
include ./editor/share
|
include ./editor/share
|
||||||
|
include ./editor/publish
|
||||||
|
|
||||||
#ide-body(
|
#ide-body(
|
||||||
ng-cloak,
|
ng-cloak,
|
||||||
|
@ -136,7 +137,8 @@ block requirejs
|
||||||
"fineuploader": "libs/#{lib('fineuploader')}",
|
"fineuploader": "libs/#{lib('fineuploader')}",
|
||||||
"ide": "#{buildJsPath('ide.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}",
|
"ide": "#{buildJsPath('ide.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}",
|
||||||
"libraries": "#{buildJsPath('libraries.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}",
|
"libraries": "#{buildJsPath('libraries.js', {hashedPath:settings.useMinifiedJs, removeExtension:true})}",
|
||||||
!{moduleIncludes("editor:script", locals)}
|
!{moduleIncludes("editor:script", locals)},
|
||||||
|
!{moduleIncludes("publish:script", locals)}
|
||||||
},
|
},
|
||||||
"waitSeconds": 0,
|
"waitSeconds": 0,
|
||||||
"shim": {
|
"shim": {
|
||||||
|
|
|
@ -107,6 +107,9 @@ header.toolbar.toolbar-header.toolbar-with-labels(
|
||||||
)
|
)
|
||||||
i.fa.fa-fw.fa-group
|
i.fa.fa-fw.fa-group
|
||||||
p.toolbar-label #{translate("share")}
|
p.toolbar-label #{translate("share")}
|
||||||
|
|
||||||
|
!= moduleIncludes('publish:button', locals)
|
||||||
|
|
||||||
a.btn.btn-full-height(
|
a.btn.btn-full-height(
|
||||||
href,
|
href,
|
||||||
ng-click="toggleHistory();",
|
ng-click="toggleHistory();",
|
||||||
|
|
9
services/web/app/views/project/editor/publish.pug
Normal file
9
services/web/app/views/project/editor/publish.pug
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
script(type='text/ng-template', id='publishProjectModalTemplate')
|
||||||
|
.modal-header
|
||||||
|
button.close(
|
||||||
|
type="button"
|
||||||
|
data-dismiss="modal"
|
||||||
|
ng-click="cancel()"
|
||||||
|
) ×
|
||||||
|
h3 Publish}
|
||||||
|
.modal-body.modal-body-publish
|
|
@ -72,6 +72,7 @@
|
||||||
"passport-oauth2-refresh": "^1.0.0",
|
"passport-oauth2-refresh": "^1.0.0",
|
||||||
"passport-saml": "^0.15.0",
|
"passport-saml": "^0.15.0",
|
||||||
"pug": "^2.0.0-beta6",
|
"pug": "^2.0.0-beta6",
|
||||||
|
"react": "^15.4.2",
|
||||||
"redis-sharelatex": "git+https://github.com/sharelatex/redis-sharelatex.git#v1.0.4",
|
"redis-sharelatex": "git+https://github.com/sharelatex/redis-sharelatex.git#v1.0.4",
|
||||||
"request": "^2.69.0",
|
"request": "^2.69.0",
|
||||||
"requestretry": "^1.13.0",
|
"requestretry": "^1.13.0",
|
||||||
|
|
|
@ -59,9 +59,17 @@ module.exports = {
|
||||||
cacheDirectory: true
|
cacheDirectory: true
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
}, {
|
||||||
|
// Export React as a global variable from the bundle
|
||||||
|
test: require.resolve('react'),
|
||||||
|
use: [{
|
||||||
|
loader: 'expose-loader',
|
||||||
|
options: 'React'
|
||||||
|
}]
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// plugins: {}
|
// plugins: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue