hbons / lockee Goto Github PK
View Code? Open in Web Editor NEWSeen those luggage lockers at the railway station? It’s like that, but for files.
Home Page: http://www.lockee.me/
License: GNU Affero General Public License v3.0
Seen those luggage lockers at the railway station? It’s like that, but for files.
Home Page: http://www.lockee.me/
License: GNU Affero General Public License v3.0
I get the following error when I try to install on an updated Arch Linux:
npm WARN engine [email protected]: wanted: {"node":">= 0.6.13 < 0.11.0"} (current: {"node":"0.12.4","npm":"2.10.1"})
When I update the sqlite3 dependencie to "~3.0.x" (in package.json) the build works fine.
So, Is it possible to bump the sqlite3 dependencie to "~3.0.x"?
Thanks! Great app btw!
Could you please tag the 1.0.0 release? thanks.
I get the following error when I start the service:
$ systemctl start lockee
$ systemctl status lockee
● lockee.service - Simple and secure temporary file storage
Loaded: loaded (/usr/lib/systemd/system/lockee.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since tor 2015-05-28 10:51:24 CEST; 1s ago
Process: 15425 ExecStart=/usr/bin/node /usr/lib/node_modules/Lockee/server.js (code=exited, status=1/FAILURE)
Main PID: 15425 (code=exited, status=1/FAILURE)
maj 28 10:51:24 workarch systemd[1]: Starting Simple and secure temporary file storage...
maj 28 10:51:24 workarch node[15425]: /usr/lib/node_modules/Lockee/server.js:144
maj 28 10:51:24 workarch node[15425]: fs.writeFile('./public/stylesheets/default.css', result.css, function(err)
maj 28 10:51:24 workarch node[15425]: ^
maj 28 10:51:24 workarch node[15425]: TypeError: Cannot read property 'css' of null
maj 28 10:51:24 workarch node[15425]: at Object.callback (/usr/lib/node_modules/Lockee/server.js:144:60)
maj 28 10:51:24 workarch node[15425]: at options.error (/usr/lib/node_modules/Lockee/node_modules/node-sass/lib/index.js:279:32)
maj 28 10:51:24 workarch systemd[1]: lockee.service: main process exited, code=exited, status=1/FAILURE
maj 28 10:51:24 workarch systemd[1]: Unit lockee.service entered failed state.
maj 28 10:51:24 workarch systemd[1]: lockee.service failed.
I modified the service file, because lockee is installed in /usr/lib/node_modules/ on my system.
$ systemctl cat lockee
# /usr/lib/systemd/system/lockee.service
[Unit]
Description=Simple and secure temporary file storage
[Service]
ExecStart=/usr/bin/node /usr/lib/node_modules/Lockee/server.js
Restart=on-abort
[Install]
WantedBy=multi-user.target
You also get the same error when running lockee from any other folder.
$ ls -l /usr/bin/lockee
lrwxrwxrwx 1 root root 36 28 maj 11.37 /usr/bin/lockee -> ../lib/node_modules/Lockee/server.js
$ lockee
/usr/lib/node_modules/Lockee/server.js:144
fs.writeFile('./public/stylesheets/default.css', result.css, function(err)
^
TypeError: Cannot read property 'css' of null
at Object.callback (/usr/lib/node_modules/Lockee/server.js:144:60)
at options.error (/usr/lib/node_modules/Lockee/node_modules/node-sass/lib/index.js:279:32)
A note about this last one: To be able to run it (and getting this error) you have to add "#!/usr/bin/env node" to server.js .
Any how, the solution I found was to changing the working dir by adding the following line to server.js:
process.chdir(__dirname)
I'm testing out Lockee.me, and on Firefox, the "Lock" button never enables, even when I type a passphrase. On Chromium, however, it enables immediately. If I manually edit the state of the button to enable it, I can upload files in Firefox just fine, however.
How about adding in the facility for emails to be sent from lockee with the locker URL?
It would also be really handy for those using such a feature to be able to track downloads, so a unique random locker URL sould be generated for each emailed user and a log could be retrieved by the uploader to show which users have accessed the files.
Great idea by @stuartlangridge.
If you set a custom domain in config.json, the cursor is in the wrong place when you click on the "Go to locker"-button.
I found the putCursorAtEnd()
function in client.js
, but the problem seems to be that the padding-left
(that is set in default.css
on line 306) doesn't changed when you set a custom domain. But I don't know how to change that, since padding-left
is set in pixels.
Hey
How about adding in config for end users so they can set for example the expiry date or set to expire after x downloads?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.