Comments (12)
Exactly what i need for a major update on flex-html. As it's such a small module, it should hopefully not take too long to review & publish it :) Looks good to me, great job 👍
from package.elm-lang.org.
This line should be this:
return elm.Native.Vendor.values = { prefix: vendorPrefix };
This makes it so the whole module does not get evaluated tons of times, that's why the prelude checking for .values is needed.
from package.elm-lang.org.
Also, to set expectations, this will not be the recommended way of doing things in the future. For the sake of making the CSS stuff work, I think it is worth it to make an exception here, but in the next months I think we well need to redo a bunch of the native modules out there. Are you okay with doing this work at some point in the future?
from package.elm-lang.org.
@evancz, are there plans to make it possible to have external CSS code published along modules? Or how would the recommended way solve modules that require heavily on CSS features?
I'm ok to help out @coreytrampe for stuff like this btw, if he needs a helping maintaining hand :)
from package.elm-lang.org.
Right now folks just distribute CSS alongside the generated Elm. Put a class in the Elm code. I don't have anything fancier than that planned, and I have a feeling the community can come up with better things than me on this question.
from package.elm-lang.org.
Ok, fixed that. Thanks, Evan.
I'll be happy to update when the time comes.
from package.elm-lang.org.
Did you edit it based on an email notification? I edited the code snippet, I got it wrong at first. It needs to have the .values
part.
I looked at docs a bit. Does it make sense to return a string? If so, what are all the possible strings? How should I find it out? Should they all be listed in the docs? Would it make sense to represent it as a union type?
type Vendor = Moz | Webkit | MS | Opera
That way there is no unexpected case for anyone. You can decide for yourself what is the right tradeoff, but I just want to make sure to ask :)
from package.elm-lang.org.
Lol, yeah. Glad you noticed.
That seems like a good idea. The usage example becomes:
import Vendor
displayValue : String
displayValue =
if Vendor.prefix == Vendor.Webkit
then "-webkit-flex"
else "flex"
Same code, but with a much stronger contract. Dig it.
from package.elm-lang.org.
LMK when it's updated
from package.elm-lang.org.
Alright, whenever you have the chance, buddy.
Sorry about the churn!
from package.elm-lang.org.
I quite like this, thanks for the work @coreytrampe 👍
from package.elm-lang.org.
Okay, should be publishable! Thanks for going through the review process!
from package.elm-lang.org.
Related Issues (20)
- Switch to self-hosting fonts HOT 1
- The website doesn't explain how to import a package HOT 3
- Site does not show contents on Firefox HOT 2
- Cannot publish a 0.18 package HOT 3
- Can't link to top of module documentation page HOT 1
- Unpublish special-elektronik/elm-autocomplete due to organisation name change HOT 2
- Code highlighting broken when starting with module
- add dark mode HOT 3
- Can't build the backend server with Cabal
- Add documentation on how to build the backend server
- Add a page that lists packages published by a single author HOT 1
- Namespace organization
- Add a maintainer page, listing all packages maintained/owned by someone HOT 2
- package.elm-lang.org uses expired DST Root X3 certificate HOT 5
- Deleted Package HAN-ASD-DT/priority-queue
- Promote jfmengels/elm-review in package search results for "elm-review"
- Request to support query parameter for search query
- how to build?
- Limit for docs.json too low HOT 1
- READMEs only supported as Markdown
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 package.elm-lang.org.