A server that could help you to find more interesting image repositories. Also, it could be an easy way to make a gallery for your image repository. Support users to look images hosted in Github.com
and Gitee.com
. You can redeploy this server to build your own service or just USE the demo website directly.
To redeploy, you need to have a nodejs
environment at first, then make sure you install all packages in package.json
. Since I used sqlite
to store some data, you need to manually execute some codes as follows to create a proper table with your sqlite.
CREATE TABLE CList (
id INTEGER PRIMARY KEY AUTOINCREMENT,
url TEXT, hot TEXT, size TEXT, ctime TEXT, ex1 TEXT, ex2 TEXT, ex3 TEXT, ex4 TEXT
)
Next, things will be very easy: just run & look. Have fun! (Don't know how to run a node app? see document)
On the front-end,
views/index.html
hold the content of the webpagepublic/client.js
is the javascript that runs when you load the webpagepublic/style.css
is the styles forviews/index.html
On the back-end,
- ImageFinder starts at
server.js
- involved packages see
package.json
Supported query rules:
- Picture url:
https://cdn.jsdelivr.net/gh/name/repo/x.jpg
- Original link from repo:
https://github.com/name/repo
Internal directory:https://github.com/name/repo/tree/main/sub
Default branch:https://github.com/name/repo/sub
Default prefix:/name/repo/sub
(Github image bed only)Single page rendering: directly visitxvido.es?x=url
Other image beds:Gitee
has been supported, the rules are the same as above
✖ Since the policy of Github and Gitee has changed, some functions are disactive now :(
v0.0.1
Complete basic resolve logic and basic front-end stylev0.0.2
Add the function of rendering a single page, which can be used as a photo albumv0.0.3
Introducesqlite3
, add the module ofrecent view
v0.0.4
Completion of multiple query methods, especially only the image url methodv0.0.5
Add the function ofsub-directory
view, support upper and lower view operationsv0.0.6
Improve front-end operation stepsv0.0.7
Add the judgment that the operation returns an exceptionv0.0.8
Add support for Gitee repo, the rules are the same as Github repo (Stable version)v0.0.9
Create slider tool (nstSlider.js
) to change the size of pictures smoothly.v0.1.0
Kill the blank space by new layout.
Todo
Bug:
Links containing Chinese will cause errors.Add:
Add support for Gitee image bed!Fix:
Use more suitable images layout (e.g. waterfall flow)
Note: This may invade the privacy of others, I am NOT responsible for any consequences of misusing this project.
Find out more. cxmoe.com.