This repo has moved to https://codeberg.org/JoshuaCrewe/joshuacrewe
joshuacrewe / library Goto Github PK
View Code? Open in Web Editor NEWMove to : https://codeberg.org/JoshuaCrewe/library
Move to : https://codeberg.org/JoshuaCrewe/library
This repo has moved to https://codeberg.org/JoshuaCrewe/joshuacrewe
It should be in a model.
Create a model which will handle all the data manipulation. Normally this would be an eloquent model fetching data from the database. We have no database as we are dealing with data from another site so we will create the methods for this.
$book->all()
$book->get()
Something like that?
The default to return is 10 items in a list. By adding &max=12
to the query we can choose how many to get.
Pagination is handled with &offset=12
FYI
The app should clear the search and show the home page again. Similarly refreshing the back and clicking the back button to get the search results URL should show the search results.
This will likely hammer the source material a bit but would be nice to have results come up when typing.
We should save the current search I would think ... ?
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Fresh install of the app. composer install
and yarn install && yarn watch
.
Enter a single word and get results. Enter more than one word and get an error.
When focussing (on ios?) the blue outline does not line up with the border of the box.
From Alpha tester :
Load app on ios.
Search for "Don't be evil"
Wait forever as it always loads
It looks like ios is adding a smart (curly) quote which is breaking things.
In order to reserve books via this interface we are going to have to be able to use the Library Membership Number form (https://capitadiscovery.co.uk/cornwall/login). I suspect that this form will set a cookie enabling access to other areas of the site.
We will need a way of saving this information to use in future requests of the web scraper. I am not sure if this is even possible at this stage.
https://symfony.com/doc/current/components/browser_kit.html#cookies
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.