Giter Site home page Giter Site logo

k15t / spark Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 5.0 863 KB

SPARK is a framework for add-on developers for the Atlassian platform to develop, build and integrate Single Page Applications (SPA) for Confluence, JIRA and other Atlassian products.

License: MIT License

Java 45.60% JavaScript 51.75% HTML 0.82% SCSS 1.83%

spark's People

Contributors

cbromberg avatar cdauth avatar dashman-git avatar eugeug avatar jensrutschmann avatar lj020 avatar magamir avatar moerphy avatar rikuhaa avatar skleinei avatar svenwalter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spark's Issues

appLoader ideas

Just some quick thoughts on the appLoader. Maybe we can discuss them sometime :)

var defaults = {
    containerEl: null,  // if null the appLoader will generate a random container element
                        // if not null SPARK will use this element as app container
    template: null, // if not null the appLoader will inject this template as app starter template
    jsFiles: [], // array with JS files which get lazy loaded
    cssFiles: [], // array with CSS files which get are lazy loaded
    beforeLoad: function() {
               // this function gets called before the app is loaded
               // it can be used todo the jQuery.load() / parse meta-tags stuff for example
    }
};

// ...

var appLoader = function(appName, opts, cb) {
    var options = angular.extend({}, defaults, opts);

    // ...

    // 1. call the beforeLoad function
    // 2. lazyLoad cssFiles
    // 3. lazyLoad jsFiles
    // 4. call angular.bootstrap
    // 5. call the cb function (with $injector.invoke())
};

// using the appLoader:

appLoader('my-spark-app', {}, function(MyFancyDialog, sparkApp) {
    // this function gets called once the app is loaded.
    // it supports dependency injection. So you can for example
    // create a dialog directly from within here 

    MyFancyDialog.create({
        onClose: function() {
            // destroy the spark app:
            sparkApp.destroy();
            // notice: not calling sparkApp.destroy() will keep the app in the memory
        }
    });
});

Unable to build on apple silicon

This won't build on apple silicon due to an old version of the frontend-maven-plugin.

This should be fixed with upping the version to 1.11.3

<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.11.3</version>

Nexus Login required

Hello,

when I run atlas-debug I get this error message:
[ERROR] Failed to execute goal on project spa: Could not resolve dependencies for project xxx.xxx.xxx:atlassian-plugin:1.0.0-SNAPSHOT: Failed to collect dependencies at com.k15t.spark:spark-confluence:jar:2.2.0: Failed to read artifact descriptor for com.k15t.spark:spark-confluence:jar:2.2.0: Could not transfer artifact com.k15t.scroll.dependencies:confluence-dep-5-10:pom:3 from/to spark-repo (https://nexus.k15t.com/content/repositories/releases): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

Regards,
Jan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.