Comments (26)
Thanks, I found the issue. Nested elements are transformed into divs, and the link is set in JavaScript. There I didn't check for the correct mode. I think it is fixed in 1.0.13. Can you update the lib
npm update [email protected]
Klaus
from figma-low-code.
Hi @KlausSchaefers
I also think this repo should be updated with the latest vue-low-code version in package,json so users don't encounter the bugs that have been resolved.
from figma-low-code.
Hi,
I think I fixed it. Can you try out [email protected]?
Cheers,
Klaus
from figma-low-code.
Hello,
I am using [email protected]
I figured the routing works when inputted directly.
But when I click a button to go to another component, it adds hash to the route, hence not working.
It only works when I edit the route URL by removing the hash.
@KlausSchaefers
Thanks
from figma-low-code.
Hi,
the new code base should detect if you are using the router in 'history' mode and remove the hashs form the links. The mode should be declared ass
const router = new VueRouter({
mode: 'history',
routes: [...]
})
-
Can you delete the package-log.json and the node_modules folder
-
Reinstall all dependencies
Thanks,
Klaus
from figma-low-code.
@KlausSchaefers I have deleted package-lock.json and also node_modules
Then reinstalled.
This is the package-lock reference which shows 1.0.1-beta is used.
"vue-low-code": {
"version": "1.0.1-1.beta",
"resolved": "https://registry.npmjs.org/vue-low-code/-/vue-low-code-1.0.1-1.beta.tgz",
"integrity": "sha512-3Gol6q/GFkoBanaF50vGix78GbG8ay7rshmC4GBIn9G/mLUtVjL0NEkylnVxui/DWMr1lrdNBpEf0lJ4AXpqyw==",
"requires": {
"@mdi/font": "^4.9.95"
}
}
And in the router file:
const router = new VueRouter({ mode: 'history', routes })
But it still not working. It adds hash to the route. But when I edit the route url, it works well. But when I click to navigate to a component it adds hash to the url which makes it fail.
from figma-low-code.
can you open the dev console in the browser. You should see something like
QUX.mounted() > Launch router with history
from figma-low-code.
@KlausSchaefers Nope. I don't see that in the console.
I'm using Figma not Quant-UX though.
from figma-low-code.
Figma wraps Quant-UX.. so you should have seen that.... Strange. can you check if the router object on your page has the mode set?
mounted () {
console.debug(this.$router.mode)
console.debug(this.$router)
}
from figma-low-code.
Ya.
console.log(this.$router.mode)
history
console.log(this.$router)
VueRouter Object
However, console.debug
doesn't return anything.
from figma-low-code.
Hmmm, that is strange. can you share your project?
from figma-low-code.
Wow. Thanks for the effort @KlausSchaefers I really appreciate.
I have created temporal repo and figma document.
Figma link: https://www.figma.com/file/uKgt9PzMeazuh8SqXJQoVs/Figma-low-code-route-test?node-id=0%3A1
Repo link: https://github.com/kingzley/figma-low-code-test
from figma-low-code.
For me this works. The history mode is detected and the links are correct
from figma-low-code.
from figma-low-code.
Ya. Contact Us is strange,
Try clicking on Login or SignUp for example.
from figma-low-code.
Hello @KlausSchaefers
Were you able to see the routing issue when clicking on Login, SignUP and other buttons on your end?
from figma-low-code.
Yes. The generated URLs did not contain the # ... see the screen shot.
from figma-low-code.
From the screenshot only the ContactUs element is in an anchor tag.
But other elements such as Login and Signup isn't.
Is there any particular reason why this is the case? Because it includes the hash when those buttons are clicked. Please check again to confirm
from figma-low-code.
@KlausSchaefers Thanks a lot. 🙏
It works now.
from figma-low-code.
I found some other bugs in your design, e.g. the line height and missing font imports. I added this in the latest release
npm update [email protected]
Could you verify that fixes?
from figma-low-code.
No matching version found for [email protected]
Version 1.0.14 not updated yet.
from figma-low-code.
Ups, did not push to NPM... try now :D
from figma-low-code.
It works.
I just noticed that it doesn't import the font colors.
Is that a bug or that feature is not available now?
from figma-low-code.
You mean the blue underscores? This is still a missing feature.... Rich text is not yet supported!
from figma-low-code.
Feel free to open a bug for that...
from figma-low-code.
You mean the blue underscores? This is still a missing feature.... Rich text is not yet supported!
Yes. Exactly.
Feel free to open a bug for that...
Oh Ok. Thank you.
from figma-low-code.
Related Issues (20)
- Text elements containing only numbers are always rendered top left HOT 5
- Only component instances seem to be generated properly. Master Component is brought in as "background-image" HOT 4
- [Feature] Refer to component by ID instead whole file by ID HOT 15
- api.figma -> rate limit exceeded HOT 8
- open plugins error HOT 3
- Not supported widget type: Custom HOT 1
- Is there way how to deal with interactive things? HOT 2
- [Feature] Respect letter case text style HOT 3
- Fix size of elements with auto-layout HOT 18
- Vue 3 support? HOT 4
- Open source the figma plugin HOT 3
- Screen has fixed width HOT 6
- Some issues reported
- TypeError: Cannot read properties of undefined (reading 'min') HOT 14
- Unable to select specific Pages from Figma file HOT 1
- Absolute positioning is not working accordingly expectation HOT 7
- Add documentation how to setup for running vue project HOT 1
- How to setup Figma low code in a running vue project HOT 1
- Figma plugin does not work with certain Figma projects HOT 13
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 figma-low-code.