git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 1b50f4bc87538743de7931301f3b00f1ff1466d1

Fix formatting.

Gordon Martin committed on 2/14/2018, 12:06:04 AM
Parent: 6e47bd5db740207b5ec4d5f46bc07a5c92db134d

Files changed

index.jschanged
locales/en.jsonchanged
modules/feed/html/follow-warning.jschanged
modules/page/html/render/public.jschanged
index.jsView
@@ -24,24 +24,23 @@
2424 * scuttlebot instances that conflict on the same port. Before opening patchwork,
2525 * we check if it's already running and if it is we focus the existing window
2626 * rather than opening a new instance.
2727 */
28-function quitIfAlreadyRunning() {
29- var shouldQuit = electron.app.makeSingleInstance(function(commandLine, workingDirectory) {
28+function quitIfAlreadyRunning () {
29+ var shouldQuit = electron.app.makeSingleInstance(function (commandLine, workingDirectory) {
3030 // Someone tried to run a second instance, we should focus our window.
3131 if (windows.main) {
32- if (windows.main.isMinimized()) windows.main.restore();
33- windows.main.focus();
32+ if (windows.main.isMinimized()) windows.main.restore()
33+ windows.main.focus()
3434 }
35- });
35+ })
3636
3737 if (shouldQuit) {
38- electron.app.quit();
39- return;
38+ electron.app.quit()
4039 }
4140 }
4241
43-quitIfAlreadyRunning();
42+quitIfAlreadyRunning()
4443
4544 electron.app.on('ready', () => {
4645 setupContext('ssb', {
4746 server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb'))
locales/en.jsonView
@@ -99,6 +99,19 @@
9999 "likes": "likes",
100100 " others": " others",
101101 "like": "like",
102102 "subscribed to ": "subscribed to ",
103- "liked this message": "liked this message"
103+ "liked this message": "liked this message",
104+ "Click to unblock": "Click to unblock",
105+ "Blocked": "Blocked",
106+ "Click to unfollow": "Click to unfollow",
107+ "Follow Back": "Follow Back",
108+ "Follow": "Follow",
109+ "Click to block syncing with this person and hide their posts": "Click to block syncing with this person and hide their posts",
110+ "Block": "Block",
111+ "This is you.": "This is you.",
112+ "unsubscribed from ": "unsubscribed from ",
113+ "mentioned in your network": "mentioned in your network",
114+ "on ": "on ",
115+ "assigned a display image to ": "assigned a display image to ",
116+ "Close": "Close"
104117 }
modules/feed/html/follow-warning.jsView
@@ -12,20 +12,20 @@
1212 'feed.html.followWarning': true,
1313 'feed.html.followerWarning': true
1414 })
1515
16-exports.create = function(api) {
16+exports.create = function (api) {
1717 const i18n = api.intl.sync.i18n
1818 return nest('feed.html', {
19- followWarning: function followWarning(condition, explanation) {
20- return renderWarningBox(condition, i18n("You are not following anyone"), explanation)
19+ followWarning: function followWarning (condition, explanation) {
20+ return renderWarningBox(condition, i18n('You are not following anyone'), explanation)
2121 },
22- followerWarning: function followerWarning(condition, explanation) {
23- return renderWarningBox(condition, i18n("You have no followers"), explanation)
22+ followerWarning: function followerWarning (condition, explanation) {
23+ return renderWarningBox(condition, i18n('You have no followers'), explanation)
2424 }
2525 })
2626
27- function renderWarningBox(condition, header, explanation) {
27+ function renderWarningBox (condition, header, explanation) {
2828 var content = h('div', {
2929 classList: 'NotFollowingAnyoneWarning'
3030 }, h('section', [
3131 h('h1', header),
@@ -38,7 +38,5 @@
3838 ]))
3939
4040 return when(condition, content)
4141 }
42-
43-
4442 }
modules/page/html/render/public.jsView
@@ -274,9 +274,8 @@
274274 return api.feed.html.followWarning(shownWhen, explanation)
275275 }
276276
277277 function noFollowersWarning () {
278-
279278 var explanation = i18n(
280279 'Nobody will be able to see your posts until you have a follower. The easiest way to get a follower is to use a pub invite as the pub will follow you back. If you have already redeemed a pub invite and you see it has not followed you back on your profile, try another pub.'
281280 )
282281
@@ -288,9 +287,9 @@
288287 (isLoading, hasNoFollowers, isNotFollowingAnybody) =>
289288 !isLoading && (hasNoFollowers && !isNotFollowingAnybody)
290289 )
291290
292- return api.feed.html.followerWarning(shownWhen, explanation);
291+ return api.feed.html.followerWarning(shownWhen, explanation)
293292 }
294293
295294 function subscribe (id) {
296295 api.message.async.publish({

Built with git-ssb-web