imba.io icon indicating copy to clipboard operation
imba.io copied to clipboard

Finish v2 docs

Open trafnar opened this issue 4 years ago • 13 comments

We should also check for broken links. I know there are some.

trafnar avatar Nov 30 '20 20:11 trafnar

I added support for arbitrary breakpoints in css yesterday, so instead of pl@md: ... you can do pl@1024 or pl@900: ... etc. It turned out to be a very important feature while working on new scrimba site - when you want to really polish responsivity So even if it was an experiment I know already it's a stayer Also pl@!900 is essentially @media (max-width: 899px). All modifiers will support negation at some point The highlighting is lagging a little behind - so these breakpoint modifiers dont look that nice in vscode atm Anyone here have experience writing tmLanguage grammars? We're currently using a modified version of the typescript tmLanguage in vscode-imba, and it is insanely slow. Now that vscode has added support for semantic highlighting it could be so much simpler (and thereby faster). The easiest approach might be to just start removing rules from the tmLanguage file but I suspect that it should be relatively easy to just create a new one.

trafnar avatar Dec 03 '20 21:12 trafnar

  • [ ] Explain Optional Chaining Operator:
const dogName = animals.dog?.name # JS
const dogName = animals.dog..name # IMBA ?

ericvida avatar Dec 16 '20 10:12 ericvida

  • [ ] Document different ways to do Dynamic Styles
tag App
	def state = true
	def color = red5
	def dynamicClasses = ["primary", "secondary"]
	css h1 c:teal5
		&.optionOne	c:indigo5
	css h3 c: $variable
	css h4 c: var(--variable)
	css h5
		&.primary c:red5
		&.secondary c:purple5
	def render
		<self>
			<h1.optionOne=state> "Option one" # conditional classes
			<h2[c:{color}]> "Option Two" # dynamic Values
			<h3[$variable:color]> "Option Three" # Imba style variable syntax
			<h4{--variable:color}> "Option Four" # Css variable syntax
			<h5.{dynamicClass[0]}> "Option Four" # Dynamic Classes

ericvida avatar Dec 21 '20 16:12 ericvida

  • [ ] How to insert special characters like &nbsp;

trafnar avatar Jun 21 '21 18:06 trafnar

  • [ ] #196

haikyuu avatar Aug 21 '21 16:08 haikyuu

  • [ ] https://imba.io/events/event-modifiers#util-sel the description is in the code, just write it in the body, some others on this page aren't documented either like passive

trafnar avatar Aug 27 '21 21:08 trafnar

You can define 'attr myattrname' on your components, or set 'html:attrname=value' on tags to set raw attributes

It already has a section in the website: https://imba.io/tags/custom-components#declaring-attributes

haikyuu avatar Aug 28 '21 09:08 haikyuu

We should also check for broken links. I know there are some.

I just did a link check for imba.io with the help of the W3C Link Checker, and there were no issues detected.

ghost avatar Oct 28 '22 23:10 ghost

I am working on a PR for global identifiers, but how are global classes, variables/constants, and functions required to start with an uppercase letter while global tags use all lowercase letters?

ghost avatar Oct 29 '22 00:10 ghost

@IRod22 this only applies to tags. tag my-app makes <my-app> available in all the app as long as its file has been imported once. export default tag App behaves like regular es modules. You need to import it in order to be able to use it.

haikyuu avatar Oct 30 '22 05:10 haikyuu