Query: I wn complete seperate .css/.scss and .html template file for my webcomponent.js like in angular. But with complete security. In lit. Use any js lib like domPurify, etc. But I wan complete safety. How? ChatGPT said: Thought for 16s Totally doable. Here’s a secure Lit setup with fully separate .html + .scss files , sanitized with DOMPurify , and rendered into the Shadow DOM without sacrificing performance. Folder layout src / lib/ safe- html .js components/ app-shell .html app-shell .scss app-shell .js 1) Install deps npm i dompurify npm i -D sass Vite will compile .scss . We’ll import the compiled CSS as text and attach it via adoptedStyleSheets (fast + memory-friendly). 2) app-shell.html (pure template file) Put your Carbon UI Shell markup here (no scripts). Example stub: < cds-header aria-label = "My App" > < cds-header-name prefix = "IBM" >[Platform] </ cds-header-name > < cds-header-glo...
Hey, I would like to discuss how to add your domain / url / blog to Google Search Engine or console:
1> visit https://search.google.com/
2> verify your domain/url/blog that you are actual owner of it
3> in inpect your url box in the top centre of page, add your url, and press enter
4> then you can press <Test Live Url> button to check if URL is accessable in internet
5> you can then press <Request Indexing> link to get your URL indexed in google search engine
6> upon submittion of submitting request, your URL will be verified to exist, and queued in Google Search Engine indexing task (i.e crawl queue) which may take from sometime to somedays.
7> After your URL is indexed in Google Search Engine, more your site gets visited, more the chance that it will appare in Google Search.
8> For enhanced search you can also try paid service of Google Search
Comments
Post a Comment
If you have any doubts, please let me know.