Coder Social home page Coder Social logo

azeek21 / chopper Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 448 KB

Chop your urls to the shortest. Make more room for important information.

JavaScript 4.02% TypeScript 95.77% Shell 0.21%
mongodb-atlas mongoose nextjs react-query styled-components

chopper's Introduction

chopper's People

Contributors

azeek21 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

chopper's Issues

auth new logic. auth won't be dropped hopefully.

So, i was going to drop auth for this project as I did a mistake while designing this app. making it usable bor signed and non signed was a bad idea or at least my implementation was bad. But hey

Here's the deal, I am going to transfer non signed data AFTER user signs in NOT DURING SINGUP OR SINGIN. Thi should allow me copmlete user singin without checking for weak-* prefixed cookies and remove the cookies when I am done transfering user data after singin. Sounds promising, needs brainstorming. Going to come back to this.

UI

add pages: invalid url, 404
redesign: index

user.save() dosn't make changes in db when nested lists updated.

Because of this issue from mongose when user.retires[] array changes if you try to save (update: mongose both saves and updates model with save() method) changes will not be saved/updated. In fact even mongoose save event will not be triggered. Fix in /utils/redirects.txt. change all retries array updates to array.set(index, value) from array = array or array = [...otherArray, item].

add authentication

for usability purposes we already are going to have weak-uid and weak-secret cookies as soon as user visits website, these cookies will be used to identify user who has not registered yet but wants to use service. With these cookies then we can create and update urls for the user in the database and we will copy all their data to authenticated user as soon as they register or sign up.

Tasks

  • Find where to start first ๐Ÿ˜† Docs
  • implement data copy from non user to registered on signup.
    • implement provider.profile
    • implement jwt and session callbacks to bring user data from database to client side
  • change/ implement logic to support both registered and non registered users. (currently only supports non registered
    • authentication
    • url creation
    • url updates
    • url deleting

implement full url, insert, query, redirect

post mechanism almost ready, add validations, optimize
backend: fix post handler, db insertion, validation
redirecting: parsing url, qury db with parsed from_ur, redirect to queryresult.to_url

navigator is unknown on mobile

when tried to write to clipboard with navigator.clioboard.textWrite, navigator us unknown on mobile. Maybe it's also unknown on other devices. Was working on Firefox, Manjaro, Linux.

fine tune auth providers

fix providers array not including google on google merge to github. Add e few another providers if possible, polish, refactor. Add custom pages maybe...

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.