mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 10:30:18 -05:00
create imap-client file structure
This commit is contained in:
parent
04e43bde3d
commit
1cee0d4469
10
gmail-test-proxy/background.js
Normal file
10
gmail-test-proxy/background.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
chrome.app.runtime.onLaunched.addListener(function() {
|
||||||
|
chrome.app.window.create('foo.html', {
|
||||||
|
'bounds': {
|
||||||
|
'width': 1024,
|
||||||
|
'height': 650
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
13
gmail-test-proxy/imap-client-test.js
Normal file
13
gmail-test-proxy/imap-client-test.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
var assert = require('assert'),
|
||||||
|
inbox = require("inbox");
|
||||||
|
|
||||||
|
describe('IMAP client', function() {
|
||||||
|
|
||||||
|
describe("Init", function() {
|
||||||
|
|
||||||
|
it('should work', function(done) {
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
15
gmail-test-proxy/manifest.json
Normal file
15
gmail-test-proxy/manifest.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "IMAP Test",
|
||||||
|
"description": "Testing chrome.socket for IMAP",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"manifest_version": 2,
|
||||||
|
"offline_enabled": true,
|
||||||
|
"permissions": [{
|
||||||
|
"socket": ["tcp-connect"]
|
||||||
|
}],
|
||||||
|
"app": {
|
||||||
|
"background": {
|
||||||
|
"scripts": ["background.js"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,13 @@
|
|||||||
require(['jquery', 'js/app-controller', 'js/app-config'], function($, controller, app) {
|
require(['jquery', 'js/app-controller', 'js/app-config'], function($, controller, app) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
chrome.identity.getAuthToken({
|
||||||
|
'interactive': true
|
||||||
|
}, function(token) {
|
||||||
|
console.log(token);
|
||||||
|
// Use the token.
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load templates and start the application
|
* Load templates and start the application
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user