I just found a website from where I can get alloy widgets http://alloylove.com/
Please tell me how to use/integrate downloaded widgets in my project.
You can use http://gitt.io/ instead of http://alloylove.com/ , because gitt.io can install widgets modules for you .
For example :- to install nl.fokkezb.loading widget http://gitt.io/component/nl.fokkezb.loading from your project root run this command
$ gittio install nl.fokkezb.loading
It`s easy .
You need to download the contents and put it inside the widget folder. Once that is done, update the config.json file. Once done, call createWidget call and you are good to go.
Related
I'm working on the documentation (https://global-coffee-data-standard.readthedocs.io) of my JSON schema (https://raw.githubusercontent.com/andrejellema/GlobalCoffeeDataStandard/master/schema/global-coffee-data-standard.schema.json)
The basics I have working (thanks to a lot of help from this forum) but now I would like to include the docson widget to show my code more beautiful (https://global-coffee-data-standard.readthedocs.io/en/latest/explanation.html#id13)
I've read this page https://threesixtygiving-standard.readthedocs.io/en/latest/_static/docson/README/ and I'm wondering how to install docson locally but more important on ReadTheDocs.
Do I need to run npm i docson localy? If so which files do I commit to my _static folder so ReadTheDocs can work with it as well?
Or can I put some magic in conf.py to let Sphinx handle it?
EDIT
I tried adding the docson files to my _static folder and it seems to work when I add this code to my ReST file:
<script src="_static/docson/js/widget.js" data-schema="https://raw.githubusercontent.com/andrejellema/GlobalCoffeeDataStandard/master/schema/global-unique-id.json"></script>
But only when I add just one docson widget. When I add more I get this error in the console:
only one instance of babel-polyfill is allowed.
So I'm assuming this is not the correct workflow.
What is the correct workflow to add multiple docson widgets to my page.
we started our project with ES6 javascript skeleton.
we would like to extract some styles and custom attributes to a common folder so we can use these at any Aurelia module we will build in the future.
the problem is with the bundle files. we don't know how to config them to bundle external folder out of the main ES6 folder.
can you please tell us what to do?
It sounds like you want to build an Aurelia plugin that you can import into any project. I would start by taking a look at the Aurelia plugin skeleton.
Once you've built your plugin with the custom styles and attributes you want, you'll want to either register it with jspm as a link, or publically through a registry such as npm or github.
Once published, you will be able to jspm install registry:my-package in any new project, and add the following line to your main.js file:
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.plugin('my-package');
}
For more information on this last step, see the brilliant answer provided by Ashley Grant here.
Now I have one twitter api library (TwitterAPIExchange.php).
What I want to do is just to autoload it to project and make it available all model/controller.
Is it possible? Please help!!
Add in your composer.json in require block this line:
"J7mbo/twitter-api-php": "*"
And in console run composer update.
In your models or controllers add use TwitterAPIExchange; and TwitterAPIExchange will be avaible in class.
More doc in https://github.com/J7mbo/twitter-api-php/wiki
Newbie question here:
I'm fiddling around with titanium studio with alloy mvc and starting to get the hang of it. It's just not clear to me how I can import a widget into my project.
I found a nice slider menu and want to use this in my own project.
Now the docs say you have to add a dependency in the config.json like so:
"dependencies": {
"com.slider" : "1.0"
}
and then you'd be able to use it in your view:
<Widget src="com.slider"></Widget>
But don't I need to import it into my project first? And if so, how? Importing it as a project only adds it to my workspace, not in my project user /widgets/slider
Upon building this I also get the following error:
config.json references non-existent widgets: ["com.slider"]
I've been looking for hours already on google but there's not much info on this besides the alloy docs that don't cover the importing thing.
Help?
Allright, so first thing you need to do is IMPORT the widget into your project.
If you take a look at the structure of an alloy project you should see in the app folder another folder called "widgets". Copy and Paste the widget inside of it, something like this (the folder name is different because I use another slider):
Then in your view (let's say you have a main view for the slider with a window in it):
<Window id="mainWindow" class="container">
<Require type="widget" src="com.slider" id="ds"/>
</Window>
Finally, in your config.json:
"dependencies": {
"com.slider":"1.0"
}
}
gitt.io is also great for finding and installing titanium widgets and modules
CLI installation: http://gitt.io/cli
I'm having a silly problem : I'm trying to add the Jsoup library (which is just an external jar) to my android application developed in Intellij Idea and it seems and don't do it right .
I put the library in the libs folder , then I went in Project Structure -> modules and selected dependencies , select add global library , select attach source and click ok.
When I write code it is able to automatically import classes and to compile , but when running I get " java.lang.NoClassDefFoundError: org.jsoup.Jsoup"
Copy the .jar file into your lib/ directory.
Right click the new .jar in the lefthand file browser in IntelliJ / Android Studio
Choose "Add as Library..."
Voila!
-Open the External Libraries node on the Left hand panel.
-Select Open Library Settings
-Project structure dialogue opens up.
Select the Libraries.
Click the "+" to browse the file.
![add external jar1
In IntelliJ IDEA 15 you can also access the Project Structure menu item from "File" item in the menu bar. Select Libraries from the list on the left. Click the "+" to browse the file, select it and you're done. It will be added to the "External Libraries" directory in your project.
Have a look at the newer artifacts section. Perhaps you don't add the JAR into your deployment properly.
UPDATE:
I'd like to update my answer based on lessons learned over the past six years since I first answered this question.
The best way to manage 3rd party JAR dependencies in Java projects is to learn Maven (my preference) or Gradle. IntelliJ has terrific integration with both.
If you combine those with an enterprise repository like Nexus you'll have no problems. Your dependencies and versions will be completely specified. Conflicts will be identified for you. Updates will be relatively simple.