shootismoke / webapp Goto Github PK
View Code? Open in Web Editor NEWSh**t! I Smoke web application
Home Page: https://shootismoke.app
License: GNU Affero General Public License v3.0
Sh**t! I Smoke web application
Home Page: https://shootismoke.app
License: GNU Affero General Public License v3.0
It has been released!
As visible in src/frontend/localization/languages/en.json
The outdated link exists in the share text on iOS.
Thanks for the excellent app!
To show in the "Latest Stories" section
Do we keep amplitude?
oh, I forgot to mention another difference between desktop vs. mobile: the logo is slightly bigger (160px width) on desktop then mobile (128px). I think the equivalent is 10rem⦠do you think you could change this later?
e.g. a mask shouldn't be shown here:
webapp/src/components/HealthSection/HealthSection.tsx
Lines 59 to 67 in e32c11f
https://docs.expo.io/versions/v35.0.0/guides/running-in-the-browser/
Could we use some of the components from React Native directly in browser? I'm thinking about the Cigarettes
component
The dockerfile could be:
node
(probably the alpine one)yarn install
, next build
, and next start
Based on same format as the mobile app.
We use cypress to do e2e testing. We should add more tests.
Some ideas I have:
Components:
/city/{slug}
Home page:
City page:
Feel free to pick some tests, or add new ones you can think of!
Steps to reproduce:
Finally everything stucks and page stopped to respond on any actions
Chrome Version 101.0.4951.64 (Official Build) (x86_64)
I checked Safari and everything works
I wanted to find root cause of this problem, but unfortunately the project doesn't starts in web env locally
The current algorithm for find the N closest cities to the current location is very naive. We could optimize it.
If you go to the page of a city (example here), there's a ranking section, which shows the 6 closest cities to the current location, and their cigarettes information.
The current algorithm to calculate these closest cities is the following:
Lines 9 to 12 in dee5ac1
RankingSection
loads all cities using useStaticQuery
:
webapp/src/components/RankingSection/RankingSection.tsx
Lines 86 to 93 in dee5ac1
webapp/src/components/RankingSection/RankingSection.tsx
Lines 98 to 104 in dee5ac1
This algorithm is not optimal (O(n^2)
). It's okay for 1000 cities, but there are surely better way to find the closest N cities around the current location.
@mdshamoon laid out the tooling around unit tests in #69 πͺ We need to add more unit tests though.
If you are an external contributor, please free to post a message here and choose a couple of components to add unit tests too.
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.