Coder Social home page Coder Social logo

hbons / lockee Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 6.0 12.26 MB

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

HTML 8.06% JavaScript 70.62% CSS 21.32%

lockee's People

Contributors

hbons avatar silentboatman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lockee's Issues

sqlite3 error. bumping to 3.0.x?

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!

lockee.service error

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)

Add warning when file to upload is too big

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.

[enhancement request] allow email from lockee

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.

Cursor offset error with custom domain name

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.

custom_domain_error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.