This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/browserid/prove_template.ejs b/lib/browserid/prove_template.ejs | |
index d2a4ccc..489e30f 100644 | |
--- a/lib/browserid/prove_template.ejs | |
+++ b/lib/browserid/prove_template.ejs | |
@@ -1,9 +1,10 @@ | |
-Thanks for verifying your email address. This message is being sent to you to complete your sign-in to {{site}}. | |
+<%= gettext( | |
+ strargs('Thanks for verifying your email address. This message is being sent to you to complete your sign-in to % | |
-Finish registration by clicking this link: {{link}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(i18n.abide({ | |
limited_paths: ['/wsapi/stage_user', '/wsapi/stage_email'], | |
supported_languages: config.get('supported_languages'), | |
default_lang: config.get('default_lang'), | |
locale_directory: config.get('locale_directory') | |
})); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* | |
Deploy above resources directory. | |
*/ | |
const path = require('path'), | |
express = require('express'); | |
app = express.createServer(); | |
app.use(express.static(path.join(__dirname, "resources", "static"))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
var s = fs.ReadStream("./dialog.orig.js"); | |
s.setEncoding('utf8'); | |
var buf; | |
s.on('data', function(chunk) { | |
if (buf) buf += chunk; | |
else buf = chunk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copy any mo file to /tmp/any.mo | |
Comment and uncomment _p to repro. */ | |
var fs = require('fs'), | |
path=require('path'), | |
//_p = require('postprocess'), | |
Gettext = require('node-gettext'); | |
var locale = "eo", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export.assets = { | |
js: { | |
"/production/en_US/dialog.min.js": | |
[ | |
"/lib/jquery.js", | |
"/shared/foo.js" | |
] | |
}, | |
css: { | |
"/production/main.min.css": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm test | |
> [email protected] test /home/ozten/Projects/browserid | |
> ./scripts/run_all_tests.sh | |
The "sys" module is now called "util". It should have a similar interface. | |
CANNOT TEST 'test_mysql' ENVIRONMENT: can't connect to the database | |
The "sys" module is now called "util". It should have a similar interface. | |
Testing with NODE_ENV=test_json | |
tests/add-email-with-assertion-test.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
} | |
resp.on('header', function (a, b, c) { | |
console.log('boo ya', a, b, c); | |
resp.removeHeader('ETag'); | |
resp.removeHeader('Last-Modified'); | |
}); | |
next(); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clortho$ npm install ldapjs | |
npm http GET https://registry.npmjs.org/ldapjs/0.4.8 | |
npm http 304 https://registry.npmjs.org/ldapjs/0.4.8 | |
npm http GET https://registry.npmjs.org/asn1/0.1.11 | |
npm http GET https://registry.npmjs.org/nopt/1.0.10 | |
npm http GET https://registry.npmjs.org/buffertools/1.0.6 | |
npm http GET https://registry.npmjs.org/dtrace-provider/0.0.3 | |
npm http GET https://registry.npmjs.org/sprintf/0.1.1 | |
npm http 304 https://registry.npmjs.org/asn1/0.1.11 | |
npm http 200 https://registry.npmjs.org/nopt/1.0.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IP_ADDRESS=10.0.1.16 npm start | |
> [email protected] start /home/ozten/Projects/browserid | |
> ./scripts/run_locally.js | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
Error: Cannot find module './libs/all' |