Comments (6)
There's a few other projects that have implemented code injection for user configurable UIs, but the service that strikes me as the most obvious implementation of code injection is Squarespace.
The concept would be pretty simple, as described on the Squarespace site, "Use Code Injection to add HTML and scripts that enhance specific parts of your site.". Html, css, and javascript code added in this section is injected into the 'head' tag on the Stash pages.
A. There is a code injection option in the side panel
B. Within the code injection settings there are 7 different textarea tags (multi line text areas) for the users code injection, and 6 of these areas are related to each section of stash.
These areas are:
- Global. Used for code injection that will be common throughout Stash
- Scenes page
- Performers page
- Tags page
- Markers page
- Galleries page
- Studios page
C. Finally, at the bottom of the section would be a save button.
from stash.
One more thing. Code injection could be a PITA when troubleshooting or reporting possible bugs. As a dev or user you'd want to troubleshoot or report a bug using vanilla Stash without any user code affecting operation. Therefore to save a lot of trouble I would suggest an option in the Code Injection settings to enable and disable code injection on the fly while preserving the user's custom code but disabling code injection.
from stash.
If we have a self-reporting thing https://github.com/google/go-github/blob/master/github/issues.go we can have the issues mention that the user has their own CSS/JS right in the top and that modified Stash Instances "void the warranty"
from stash.
Linking #197 as it would be beneficial for allowing features like this where it could "void the warranty."
from stash.
I imagine that this is complete now that we have a CSS input box but if anyone disagrees they can re-open this and are encouraged to.
from stash.
It's been a while, but I'd like to ask for a little expansion of customizability. One can design great pages with a custom css, but the customization possibilities would be endless if there would be an option to support javascript as well. This would mean that the aforementioned Issue reporting template should be made aware of the dangers of custom javascript, but in general one can implement changes to the UI in any fashion this way.
from stash.
Related Issues (20)
- Expanding the "appears with" tab to mirror its UI on StashDB and adding the same for Studios HOT 2
- [Bug report] Enable quick toggling of sub-tag/sub-studio content HOT 1
- [Feature] Hardware transcoding on macOS (VideoToolbox) HOT 2
- [Feature] Move deleted genereated items from Maintenance to recycle bin
- [Feature] Add Custom Image Numbering and Sorting for Galleries
- [Bug Report] Nested library path quirks
- [Feature] Bulk edit Markers functionality
- [Bug Report] BangBros Scrape Requires AyloAPI HOT 2
- "File System" tab for manual browsing
- [Bug Report] Query text gets copied to next item in tagger list
- [Bug Report] Stuck at Optimising database when installing it inside sandboxie plus HOT 1
- [Feature] Create schedule task script HOT 1
- [Feature] Add additional sort options to whitelist.
- [Feature] All Cards Organised
- [Bug Report] Old O-s without dates, cant be deleted
- [Feature] image details text appear as typewriter animation in the light box.
- [Bug Report] Unable to make websocket connection: see browser console for details HOT 4
- using chrome CDP HOT 1
- [RFC] Some Questions about stash
- [Feature] Bulk Tag Editing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stash.