Skip to content

Commit

Permalink
Added Sverige and removed everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Garneij committed Aug 29, 2019
1 parent ff3946d commit ad49ac6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 66 deletions.
2 changes: 1 addition & 1 deletion src/galaxy/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function about() {
<div className='label about'>
<a className='reset-color'
target='_blank'
href="https://github.com/anvaka/pm/tree/master/about#software-galaxies-documentation">About...</a>
href="http://studioalight.com/2018/03/22/lagrymden/">About...</a>
</div>
);
}
1 change: 1 addition & 0 deletions src/galaxy/nodeDetails/degreeWindowViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function getDegreeName(connectionType, count) {
switch (graphName) {
case 'npm':
case 'bower':
case 'sverige':
case 'cpan':
case 'cran':
case 'composer':
Expand Down
2 changes: 2 additions & 0 deletions src/galaxy/nodeDetails/templates/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import npm from './npm.jsx';
import gosearch from './gosearch.jsx';
import bower from './bower.jsx';
import sverige from './sverige.jsx';
import composer from './composer.jsx';
import rubygems from './rubygems.jsx';
import cran from './cran.jsx';
Expand All @@ -22,6 +23,7 @@ export default {
npm: npm,
gosearch: gosearch,
bower: bower,
sverige: sverige,
composer: composer,
rubygems: rubygems,
github: github,
Expand Down
13 changes: 13 additions & 0 deletions src/galaxy/nodeDetails/templates/sverige.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import commonPackageTemplate from './commonPackageTempalte.jsx';

export default require('maco').template(sverige, React);

function sverige(props) {
var model = props.model;

var link = 'http://ferenda.lagen.nu/' + model.name;
var linkText = model.name;

return commonPackageTemplate(model, link, linkText);
}
1 change: 1 addition & 0 deletions src/galaxy/store/graphSepcific/graphSpecificInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function graphSpecificInfo(graphName) {
switch(graphName) {
case 'npm':
case 'bower':
case 'sverige':
case 'cpan':
case 'cran':
case 'composer':
Expand Down
70 changes: 5 additions & 65 deletions src/welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,73 +5,13 @@ export default class WelcomePage extends React.Component {
render() {
return (
<div className='container'>
<h1>Welcome to the Code Galaxies, Commander</h1>
<h1>Welcome to the Space of Law, Citizen!</h1>
<h2>Choose your destination:</h2>
<div className='media-list'>
<Destination description='Client side JavaScript package manager'
href='#/galaxy/bower?l=1'
media='bower_fly_first.png'
name='Bower'/>

<Destination description='Package manager for PHP'
href='#/galaxy/composer?l=1'
media='composer_fly_first.png'
name='Composer'/>

<Destination description='Package manager for Ruby'
href='#/galaxy/rubygems?l=1'
media='ruby_fly_first.png'
name='RubyGems'/>

<Destination description='JavaScript package manager'
href='#/galaxy/npm?cx=-1345&cy=-7006&cz=-6553&lx=0.621700613972938&ly=-0.6458651572907126&lz=0.30983196944957914&lw=0.31678177960626197&l=1'
media='npm_fly_first.png'
name='npm'/>

<Destination description='Packages from Go language (based on go-search.org)'
href='#/galaxy/gosearch?l=1'
media='go_fly_first.png'
name='Go Search'/>

<Destination description='Python Package Index'
href='#/galaxy/python?cx=-2700&cy=377&cz=5622&lx=-0.0869&ly=-0.2315&lz=-0.0338&lw=0.9684&ml=150&s=1.75&l=1&v=2015-09-27T13-00-00Z'
media='composer_fly_first.png'
name='Python (PyPI)'/>

<Destination description='Packages from .NET world'
href='#/galaxy/nuget?l=1'
media='nuget_fly_first.png'
name='NuGet'/>

<Destination description='CRAN - network of R packages'
href='#/galaxy/cran?cx=-2482&cy=-5685&cz=-291&lx=0.2264&ly=-0.6790&lz=0.4330&lw=0.5480&ml=200&s=2.75&l=1'
media='cran_fly_first.png'
name='R Language'/>

<Destination description='Debian Package Manager'
href='#/galaxy/debian?cx=-201&cy=-6170&cz=-6841&lx=0.5676&ly=-0.7456&lz=0.2400&lw=0.2536&ml=150&s=1.75&l=1'
media='debian_fly_first.png'
name='Debian'/>

<Destination description='Fedora Packages'
href='#/galaxy/fedora?cx=1539&cy=409&cz=7141&lx=0.0164&ly=0.1453&lz=-0.0027&lw=0.9892&ml=150&s=1.75&l=1&v=2015-09-02T00-00-00Z'
media='debian_fly_first.png'
name='Fedora'/>

<Destination description='Arch Linux packages without AUR'
href='#/galaxy/arch?cx=870&cy=-3968&cz=-2010&lx=0.7695&ly=-0.3554&lz=0.3109&lw=0.4299&ml=150&s=1.75&l=1&v=no-aur'
media='archlinux_fly_first.png'
name='Arch Linux'/>

<Destination description='Arch Linux packages with AUR included'
href='#/galaxy/arch?cx=2655&cy=859&cz=7898&lx=0.2160&ly=0.0620&lz=0.8560&lw=0.4656&ml=150&s=1.75&l=1&v=including-aur'
media='archlinux_aur_fly_first.png'
name='Arch Linux + AUR'/>

<Destination description='Homebrew is missing package manager for OSX'
href='#/galaxy/brew?cx=-803&cy=-3622&cz=-1640&lx=0.3774&ly=-0.7360&lz=0.4338&lw=0.3573&ml=200&s=2.75&l=1'
media='brew_fly_first.png'
name='Brew'/>
<Destination description='Svea Rikes Lag'
href='#/galaxy/sverige?cx=11391&cy=-13150&cz=-14178&lx=0.1801&ly=0.8995&lz=-0.2285&lw=0.3259&ml=5000&s=1.5&l=1&v=2015-12-12T20-00-00Z'
media='bower_fly_first.png'
name='Sverige'/>
</div>
</div>
);
Expand Down

0 comments on commit ad49ac6

Please sign in to comment.