V1 correction routage modulable

This commit is contained in:
xdrm-brackets 2016-06-02 18:52:12 +02:00
parent 0de834875a
commit a7a4c65f85
31 changed files with 1750 additions and 11966 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,8 +7,8 @@
], ],
"sourcesContent": [ "sourcesContent": [
"@import 'constants';\n\n#WRAPPER > #MENU-SIDE{\n\n\t/* [1] Elements du menu\n\t=========================================================*/\n\t& > span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 2*1em - 2*1.5em );\n\n\t\tpadding: .8em 1.5em;\n\t\tpadding-left: calc( 1.5em + 2*1em );\n\n\t\tborder-bottom: 1px solid transparent;\n\n\t\tbackground: url('/f/svg/sub/st/menu-side/aaaaaa') right 1.5em center no-repeat;\n\t\tbackground-size: .5em .5em;\n\n\n\t\tcolor: #666;\n\t\tfont-size: .85em;\n\n\t\t@include transition( color .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out, border .2s ease-in-out );\n\n\t\tcursor: pointer;\n\n\t\t/* (1) Icone svg */\n\t\t& > svg, & > svg *{\n\t\t\tposition: absolute;\n\t\t\t\ttop: calc( 50% - 1em/2 );\n\t\t\t\tleft: 1.5em;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;\n\n\t\t\tfill: $dark-fg !important;\n\t\t\t@include transition( fill .2s ease-in-out );\n\t\t}\n\n\n\t\t/* (2) Animation de @hover */\n\t\t&:not(.active):hover{\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t\tcolor: #000;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #000 !important;\n\t\t\t}\n\t\t}\n\n\t\t/* (3) Animation quand .active */\n\t\t&.active{\n\t\t\tborder-bottom-color: darken($theme-fg-primary, 5);\n\t\t\t// box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);\n\n\t\t\tbackground-color: $theme-fg-primary;\n\t\t\tbackground-image: url('/f/svg/sub-active/st/menu-side/ffffff');\n\t\t\tcolor: $dark-fg-primary;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\t/* [2] Gestion du menu deroulant\n\t=========================================================*/\n\t/* (1) Quand le menu est deroule */\n\t& > span:not(.icon) + div.sub>span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 1.5em - 2.5em );\n\n\t\tpadding: .5em 1.5em;\n\t\tpadding-left: 2.5em;\n\n\t\tbackground: #eee url('/f/svg/sub/st/menu-side/777777') 1.5em center no-repeat;;\n\t\tbackground-size: .5em;\n\n\t\tcolor: #777777;\n\t\tfont-size: .85em;\n\n\t\tcursor: pointer;\n\n\t\t@include transition( color .2s ease-in-out );\n\n\t\t// Animation de @hover ou .active\n\t\t&:hover,\n\t\t&.active{\n\t\t\tcolor: #000;\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t}\n\t}\n\n\n\t& > span:not(.icon):not(.active) + div.sub>span{\n\t\tdisplay: none;\n\t}\n}\n", "@import 'constants';\n\n#WRAPPER > #MENU-SIDE{\n\n\t/* [1] Elements du menu\n\t=========================================================*/\n\t& > span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 2*1em - 2*1.5em );\n\n\t\tpadding: .8em 1.5em;\n\t\tpadding-left: calc( 1.5em + 2*1em );\n\n\t\tborder-bottom: 1px solid transparent;\n\n\t\tbackground: url('/f/svg/sub/st/menu-side/aaaaaa') right 1.5em center no-repeat;\n\t\tbackground-size: .5em .5em;\n\n\n\t\tcolor: #666;\n\t\tfont-size: .85em;\n\n\t\t@include transition( color .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out, border .2s ease-in-out );\n\n\t\tcursor: pointer;\n\n\t\t/* (1) Icone svg */\n\t\t& > svg, & > svg *{\n\t\t\tposition: absolute;\n\t\t\t\ttop: calc( 50% - 1em/2 );\n\t\t\t\tleft: 1.5em;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;\n\n\t\t\tfill: $dark-fg !important;\n\t\t\t@include transition( fill .2s ease-in-out );\n\t\t}\n\n\n\t\t/* (2) Animation de @hover */\n\t\t&:not(.active):hover{\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t\tcolor: #000;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #000 !important;\n\t\t\t}\n\t\t}\n\n\t\t/* (3) Animation quand .active */\n\t\t&.active{\n\t\t\tborder-bottom-color: darken($theme-fg-primary, 5);\n\t\t\t// box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);\n\n\t\t\tbackground-color: $theme-fg-primary;\n\t\t\tbackground-image: url('/f/svg/sub-active/st/menu-side/ffffff');\n\t\t\tcolor: $dark-fg-primary;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\t/* [2] Gestion du menu deroulant\n\t=========================================================*/\n\t/* (1) Quand le menu est deroule */\n\t& > span:not(.icon) + div.sub>span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 1.5em - 2.5em );\n\n\t\tpadding: .5em 1.5em;\n\t\tpadding-left: 2.5em;\n\n\t\tbackground: #eee url('/f/svg/sub/st/menu-side/777777') 1.5em center no-repeat;;\n\t\tbackground-size: .5em;\n\n\t\tcolor: #777777;\n\t\tfont-size: .85em;\n\n\t\tcursor: pointer;\n\n\t\t@include transition( color .2s ease-in-out );\n\n\t\t// Animation de @hover ou .active\n\t\t&:hover,\n\t\t&.active{\n\t\t\tcolor: #000;\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t}\n\t}\n\n\n\t& > span:not(.icon):not(.active) + div.sub>span{\n\t\tdisplay: none;\n\t}\n}\n",
"/* [1] COULEURS\n=========================================================*/\n/* (1) COULEURS DU THEME $DEFAULT */\n$theme-bg: #e8e8e8;\n$theme-bg-primary: #ffffff;\n$theme-fg: #515151;\n$theme-fg-primary: #399ced;\n\n/* (2) COULEURS DE THEME $DARK */\n$dark-bg: #313541;\n$dark-bg-primary: #29282e;\n$dark-fg: #939393;\n$dark-fg-primary: #ffffff;\n\n$header-dark: #333333;\n\n/* (3) Couleurs du theme pour la timeline */\n$timeline-color: #399ced;\n\n/* [2] DIMENSIONS\n=========================================================*/\n/* (1) Layout de base */\n$menu-side-width: 15em;\n$header-height: 4em;\n\n\n\n/* [3] Mixins\n=========================================================*/\n@mixin transform($value...) {\n transform: $value;\n\t-moz-transform: $value;\n\t-o-transform: $value;\n\t-ms-transform: $value;\n\t-webkit-transform: $value;\n}\n\n\n@mixin transition($value...) {\n -webkit-transition: $value;\n transition: $value;\n}\n\n/* [4] Functions\n=========================================================*/\n// Transforme une couleur hex en string sans le #\n@function color-str($color){\n @return str-slice(#{$color}, 2, str-length(#{$color}));\n}\n" "/* [1] COULEURS\n=========================================================*/\n/* (1) COULEURS DU THEME $DEFAULT */\n$theme-bg: #e8e8e8;\n$theme-bg-primary: #ffffff;\n$theme-fg: #515151;\n$theme-fg-primary: #399ced;\n\n/* (2) COULEURS DE THEME $DARK */\n$dark-bg: #313541;\n$dark-bg-primary: #29282e;\n$dark-fg: #939393;\n$dark-fg-primary: #ffffff;\n\n$header-dark: #F8F8FA;\n\n/* (3) Couleurs du theme pour la timeline */\n$timeline-color: #738394;\n$timeline-0: #399ced;\n$timeline-1: #e64e3e;\n$timeline-2: #10baa3;\n$timeline-3: #b14be7;\n$timeline-4: #053b5d;\n\n\n/* [2] DIMENSIONS\n=========================================================*/\n/* (1) Layout de base */\n$menu-side-width: 15em;\n$header-height: 4em;\n\n\n\n/* [3] Mixins\n=========================================================*/\n@mixin transform($value...) {\n\ttransform: $value;\n\t-moz-transform: $value;\n\t-o-transform: $value;\n\t-ms-transform: $value;\n\t-webkit-transform: $value;\n}\n\n\n@mixin transition($value...) {\n\t-webkit-transition: $value;\n\ttransition: $value;\n}\n\n/* [4] Functions\n=========================================================*/\n// Transforme une couleur hex en string sans le #\n@function color-str($color){\n\t@return str-slice(#{$color}, 2, str-length(#{$color}));\n}\n"
], ],
"mappings": "ACAA;2DAC2D;AAC3D,oCAAoC;AAMpC,iCAAiC;AAQjC,4CAA4C;AAG5C;2DAC2D;AAC3D,wBAAwB;AAMxB;2DAC2D;AAe3D;2DAC2D;AD1C3D,QAAQ,GAAG,UAAU,CAAA;EAEpB;4DAC2D;EAgE3D;4DAC2D;EAC3D,mCAAmC;CA+BnC;;AApGD,QAAQ,GAAG,UAAU,GAIhB,IAAI,CAAA;EACP,OAAO,EAAE,KAAM;EACf,QAAQ,EAAE,QAAS;EAClB,KAAK,EAAE,6BAAI;EAEZ,OAAO,EAAE,UAAW;EACpB,YAAY,EAAE,oBAAI;EAElB,aAAa,EAAE,qBAAsB;EAErC,UAAU,EAAE,qCAAG,CAAmC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS;EAC9E,eAAe,EAAE,SAAU;EAG3B,KAAK,EAAE,IAAK;EACZ,SAAS,EAAE,KAAM;ECkBf,kBAAkB,EDhBC,KAAK,CAAC,IAAG,CAAC,WAAW,EAAE,UAAU,CAAC,IAAG,CAAC,WAAW,EAAE,UAAU,CAAC,IAAG,CAAC,WAAW,EAAE,MAAM,CAAC,IAAG,CAAC,WAAW;ECiBxH,UAAU,EDjBS,KAAK,CAAC,IAAG,CAAC,WAAW,EAAE,UAAU,CAAC,IAAG,CAAC,WAAW,EAAE,UAAU,CAAC,IAAG,CAAC,WAAW,EAAE,MAAM,CAAC,IAAG,CAAC,WAAW;EAE1H,MAAM,EAAE,OAAQ;EAEhB,mBAAmB;EAanB,6BAA6B;EAU7B,iCAAiC;CAejC;;AA/DF,QAAQ,GAAG,UAAU,GAIhB,IAAI,GAsBH,GAAG,EA1BT,QAAQ,GAAG,UAAU,GAIhB,IAAI,GAsBM,GAAG,CAAC,CAAC,CAAA;EACjB,QAAQ,EAAE,QAAS;EAClB,GAAG,EAAE,kBAAI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I,GAAG,AAAA,IAAI,GAAC,IAAI,CAAA;EAC9C,OAAO,EAAE,IAAK;CACd",
"names": [] "names": []
} }

File diff suppressed because one or more lines are too long

View File

@ -7,8 +7,8 @@
], ],
"sourcesContent": [ "sourcesContent": [
"@import 'constants';\n\n#WRAPPER > #MENU-SIDE{\n\n\t/* [1] Elements du menu\n\t=========================================================*/\n\t& > span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 2*1em - 2*1.5em );\n\n\t\tpadding: .8em 1.5em;\n\t\tpadding-left: calc( 1.5em + 2*1em );\n\n\t\tborder-bottom: 1px solid transparent;\n\n\t\tbackground: url('/f/svg/sub/st/menu-side/aaaaaa') right 1.5em center no-repeat;\n\t\tbackground-size: .5em .5em;\n\n\n\t\tcolor: #666;\n\t\tfont-size: .85em;\n\n\t\t@include transition( color .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out, border .2s ease-in-out );\n\n\t\tcursor: pointer;\n\n\t\t/* (1) Icone svg */\n\t\t& > svg, & > svg *{\n\t\t\tposition: absolute;\n\t\t\t\ttop: calc( 50% - 1em/2 );\n\t\t\t\tleft: 1.5em;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;\n\n\t\t\tfill: $dark-fg !important;\n\t\t\t@include transition( fill .2s ease-in-out );\n\t\t}\n\n\n\t\t/* (2) Animation de @hover */\n\t\t&:not(.active):hover{\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t\tcolor: #000;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #000 !important;\n\t\t\t}\n\t\t}\n\n\t\t/* (3) Animation quand .active */\n\t\t&.active{\n\t\t\tborder-bottom-color: darken($theme-fg-primary, 5);\n\t\t\t// box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);\n\n\t\t\tbackground-color: $theme-fg-primary;\n\t\t\tbackground-image: url('/f/svg/sub-active/st/menu-side/ffffff');\n\t\t\tcolor: $dark-fg-primary;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\t/* [2] Gestion du menu deroulant\n\t=========================================================*/\n\t/* (1) Quand le menu est deroule */\n\t& > span:not(.icon) + div.sub>span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 1.5em - 2.5em );\n\n\t\tpadding: .5em 1.5em;\n\t\tpadding-left: 2.5em;\n\n\t\tbackground: #eee url('/f/svg/sub/st/menu-side/777777') 1.5em center no-repeat;;\n\t\tbackground-size: .5em;\n\n\t\tcolor: #777777;\n\t\tfont-size: .85em;\n\n\t\tcursor: pointer;\n\n\t\t@include transition( color .2s ease-in-out );\n\n\t\t// Animation de @hover ou .active\n\t\t&:hover,\n\t\t&.active{\n\t\t\tcolor: #000;\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t}\n\t}\n\n\n\t& > span:not(.icon):not(.active) + div.sub>span{\n\t\tdisplay: none;\n\t}\n}\n", "@import 'constants';\n\n#WRAPPER > #MENU-SIDE{\n\n\t/* [1] Elements du menu\n\t=========================================================*/\n\t& > span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 2*1em - 2*1.5em );\n\n\t\tpadding: .8em 1.5em;\n\t\tpadding-left: calc( 1.5em + 2*1em );\n\n\t\tborder-bottom: 1px solid transparent;\n\n\t\tbackground: url('/f/svg/sub/st/menu-side/aaaaaa') right 1.5em center no-repeat;\n\t\tbackground-size: .5em .5em;\n\n\n\t\tcolor: #666;\n\t\tfont-size: .85em;\n\n\t\t@include transition( color .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out, border .2s ease-in-out );\n\n\t\tcursor: pointer;\n\n\t\t/* (1) Icone svg */\n\t\t& > svg, & > svg *{\n\t\t\tposition: absolute;\n\t\t\t\ttop: calc( 50% - 1em/2 );\n\t\t\t\tleft: 1.5em;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;\n\n\t\t\tfill: $dark-fg !important;\n\t\t\t@include transition( fill .2s ease-in-out );\n\t\t}\n\n\n\t\t/* (2) Animation de @hover */\n\t\t&:not(.active):hover{\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t\tcolor: #000;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #000 !important;\n\t\t\t}\n\t\t}\n\n\t\t/* (3) Animation quand .active */\n\t\t&.active{\n\t\t\tborder-bottom-color: darken($theme-fg-primary, 5);\n\t\t\t// box-shadow: inset 0 0 1em darken($dark-bg-primary, 1);\n\n\t\t\tbackground-color: $theme-fg-primary;\n\t\t\tbackground-image: url('/f/svg/sub-active/st/menu-side/ffffff');\n\t\t\tcolor: $dark-fg-primary;\n\n\t\t\t& > svg, & > svg *{\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n\n\t/* [2] Gestion du menu deroulant\n\t=========================================================*/\n\t/* (1) Quand le menu est deroule */\n\t& > span:not(.icon) + div.sub>span{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\twidth: calc( 100% - 1.5em - 2.5em );\n\n\t\tpadding: .5em 1.5em;\n\t\tpadding-left: 2.5em;\n\n\t\tbackground: #eee url('/f/svg/sub/st/menu-side/777777') 1.5em center no-repeat;;\n\t\tbackground-size: .5em;\n\n\t\tcolor: #777777;\n\t\tfont-size: .85em;\n\n\t\tcursor: pointer;\n\n\t\t@include transition( color .2s ease-in-out );\n\n\t\t// Animation de @hover ou .active\n\t\t&:hover,\n\t\t&.active{\n\t\t\tcolor: #000;\n\t\t\tbackground-image: url('/f/svg/sub/st/menu-side/000000');\n\t\t}\n\t}\n\n\n\t& > span:not(.icon):not(.active) + div.sub>span{\n\t\tdisplay: none;\n\t}\n}\n",
"/* [1] COULEURS\n=========================================================*/\n/* (1) COULEURS DU THEME $DEFAULT */\n$theme-bg: #e8e8e8;\n$theme-bg-primary: #ffffff;\n$theme-fg: #515151;\n$theme-fg-primary: #399ced;\n\n/* (2) COULEURS DE THEME $DARK */\n$dark-bg: #313541;\n$dark-bg-primary: #29282e;\n$dark-fg: #939393;\n$dark-fg-primary: #ffffff;\n\n$header-dark: #333333;\n\n/* (3) Couleurs du theme pour la timeline */\n$timeline-color: #399ced;\n\n/* [2] DIMENSIONS\n=========================================================*/\n/* (1) Layout de base */\n$menu-side-width: 15em;\n$header-height: 4em;\n\n\n\n/* [3] Mixins\n=========================================================*/\n@mixin transform($value...) {\n transform: $value;\n\t-moz-transform: $value;\n\t-o-transform: $value;\n\t-ms-transform: $value;\n\t-webkit-transform: $value;\n}\n\n\n@mixin transition($value...) {\n -webkit-transition: $value;\n transition: $value;\n}\n\n/* [4] Functions\n=========================================================*/\n// Transforme une couleur hex en string sans le #\n@function color-str($color){\n @return str-slice(#{$color}, 2, str-length(#{$color}));\n}\n" "/* [1] COULEURS\n=========================================================*/\n/* (1) COULEURS DU THEME $DEFAULT */\n$theme-bg: #e8e8e8;\n$theme-bg-primary: #ffffff;\n$theme-fg: #515151;\n$theme-fg-primary: #399ced;\n\n/* (2) COULEURS DE THEME $DARK */\n$dark-bg: #313541;\n$dark-bg-primary: #29282e;\n$dark-fg: #939393;\n$dark-fg-primary: #ffffff;\n\n$header-dark: #F8F8FA;\n\n/* (3) Couleurs du theme pour la timeline */\n$timeline-color: #738394;\n$timeline-0: #399ced;\n$timeline-1: #e64e3e;\n$timeline-2: #10baa3;\n$timeline-3: #b14be7;\n$timeline-4: #053b5d;\n\n\n/* [2] DIMENSIONS\n=========================================================*/\n/* (1) Layout de base */\n$menu-side-width: 15em;\n$header-height: 4em;\n\n\n\n/* [3] Mixins\n=========================================================*/\n@mixin transform($value...) {\n\ttransform: $value;\n\t-moz-transform: $value;\n\t-o-transform: $value;\n\t-ms-transform: $value;\n\t-webkit-transform: $value;\n}\n\n\n@mixin transition($value...) {\n\t-webkit-transition: $value;\n\ttransition: $value;\n}\n\n/* [4] Functions\n=========================================================*/\n// Transforme une coule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B,UAAU,CAAE,IAAI,CAAC,qCAAG,CAAmC,KAAK,CAAC,MAAM,CAAC,SAAS,CAC7E,eAAe,CAAE,IAAK,CAEtB,KAAK,CAAE,OAAQ,CACf,SAAS,CAAE,KAAM,CAEjB,MAAM,CAAE,OAAQ,CCzCjB,kBAAkB,CD2CI,KAAK,CAAC,IAAG,CAAC,WAAW,CC1C3C,UAAU,CD0CY,KAAK,CAAC,IAAG,CAAC,WAAW,CAQ1C,AA9FF,QAAQ,CAAG,UAAU,CAsEhB,IAAI,AAAA,IAAK,CAAA,KAAK,EAAI,GAAG,AAAA,IAAI,CAAC,IAAI,AAmBhC,MAAM,CAzFT,QAAQ,CAAG,UAAU,CAsEhB,IAAI,AAAA,IAAK,CAAA,KAAK,EAAI,GAAG,AAAA,IAAI,CAAC,IAAI,AAoBhC,OAAO,AAAA,CACP,KAAK,CAAE,IAAK,CACZ,gBAAgB,CAAE,qCAAG,CACrB,AA7FH,QAAQ,CAAG,UAAU,CAiGhB,IAAI,AAAA,IAAK,CAAA,KAAK,CAAC,IAAK,CAAA,OAAO,EAAI,GAAG,AAAA,IAAI,CAAC,IAAI,AAAA,CAC9C,OAAO,CAAE,IAAK,CACd",
"names": [] "names": []
} }

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@
"../notif.scss" "../notif.scss"
], ],
"sourcesContent": [ "sourcesContent": [
"body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid darken(#ddd, 10);\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n cursor: default;\n\n // ECARTEMENT DU BOTTOM POUR LE DERNIER\n &:last-child{\n margin-bottom: 1em;\n }\n\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n // ANIMATION DE @HOVER\n &:hover{\n box-shadow: inset 0 0 1em #eee, 0 0 1em #555;\n }\n\n\n\n // TITRE ET BOULE DE COULEUR\n strong:first-child{\n\n text-transform: uppercase;\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n }\n\n }\n\n // DIFFERENTS THEMES\n // WARNING\n &[data-warning]{\n border-color: #dd6a45;\n border-bottom-color: darken(#dd6a45, 10);\n strong:first-child{ &:before{ background-color: #dd6a45; } }\n }\n // INFO\n &[data-info]{\n border-color: #2195da;\n border-bottom-color: darken(#2195da, 10);\n strong:first-child{ &:before{ background-color: #2195da; } }\n }\n // SUCCESS\n &[data-success]{\n border-color: #5fca4a;\n border-bottom-color: darken(#5fca4a, 10);\n strong:first-child{ &:before{ background-color: #5fca4a; } }\n }\n // ERROR\n &[data-error]{\n border-color: #d94747;\n border-bottom-color: darken(#d94747, 10);\n strong:first-child{ &:before{ background-color: #d94747; } }\n }\n\n\n }\n\n}\n" "body > #notification-container{\n\n\tdisplay: flex;\n\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\n\tflex-direction: column;\n\tflex-wrap: nowrap;\n\n\tz-index: 200;\n\tpointer-events: none;\n\n\n\t.notification-element{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\tmargin: .2em auto;\n\t\t\tpadding: 0 1em;\n\n\t\tborder-radius: 3px;\n\t\tborder: 1px solid #ddd;\n\t\tborder-bottom: 1px solid darken(#ddd, 10);\n\t\tbox-shadow: inset 0 0 1em #eee;\n\n\t\tbackground-color: #fff;\n\n\t\tpointer-events: all;\n\t\tcursor: default;\n\n\t\t// ECARTEMENT DU BOTTOM POUR LE DERNIER\n\t\t&:last-child{\n\t\t\tmargin-bottom: 1em;\n\t\t}\n\n\n\t\t// ANIMATION DE fadeIn + fadeOut\n\t\ttransition: opacity .5s ease-in-out;\n\t\topacity: 0;\n\n\t\t&.notification-visible{\n\t\t\topacity: 1;\n\t\t}\n\n\n\t\t// ANIMATION DE @HOVER\n\t\t&:hover{\n\t\t\tbox-shadow: inset 0 0 1em #eee, 0 0 1em #555;\n\t\t}\n\n\n\n\t\t// TITRE ET BOULE DE COULEUR\n\t\tstrong:first-child{\n\n\t\t\ttext-transform: uppercase;\n\t\t\tpadding-left: 1.5em;\n\n\t\t\t&:before{\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 1.2em;\n\t\t\t\tleft: 1em;\n\t\t\t\twidth: .9em;\n\t\t\t\theight: .9em;\n\n\t\t\t\tborder-radius: 50% / 50%;\n\t\t\t\tbox-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\t\t\t}\n\n\t\t}\n\n\t\t// DIFFERENTS THEMES\n\t\t// WARNING\n\t\t&[data-warning]{\n\t\t\tborder-color: #dd6a45;\n\t\t\tborder-bottom-color: darken(#dd6a45, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #dd6a45; } }\n\t\t}\n\t\t// INFO\n\t\t&[data-info]{\n\t\t\tborder-color: #2195da;\n\t\t\tborder-bottom-color: darken(#2195da, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #2195da; } }\n\t\t}\n\t\t// SUCCESS\n\t\t&[data-success]{\n\t\t\tborder-color: #5fca4a;\n\t\t\tborder-bottom-color: darken(#5fca4a, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #5fca4a; } }\n\t\t\t}\n\t\t// ERROR\n\t\t&[data-error]{\n\t\t\tborder-color: #d94747;\n\t\t\tborder-bottom-color: darken(#d94747, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #d94747; } }\n\t\t}\n\n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7B,qBAAqB,CA+EnB,AAAA,UAAC,AAAA,EAAW;EACZ,YAAY,EAAE,OAAQ;EACtB,mBAAmB,EAAE,OAAM;CAE3B;;AAlGH,IAAI,GAAG,uBAAuB,CAe7B,qBAAqB,CA+EnB,AAAA,UAAC,AAAA,EAGD,MAAM,AAAA,YAAY,AAAG,OAAO,CAAA;EAAE,gBAAgB,EAAE,OAAQ;CAAI",
"names": [] "names": []
} }

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@
"../notif.scss" "../notif.scss"
], ],
"sourcesContent": [ "sourcesContent": [
"body > #notification-container{\n\n display: flex;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n\n flex-direction: column;\n flex-wrap: nowrap;\n\n z-index: 200;\n pointer-events: none;\n\n\n .notification-element{\n display: block;\n position: relative;\n margin: .2em auto;\n padding: 0 1em;\n\n border-radius: 3px;\n border: 1px solid #ddd;\n border-bottom: 1px solid darken(#ddd, 10);\n box-shadow: inset 0 0 1em #eee;\n\n background-color: #fff;\n\n pointer-events: all;\n cursor: default;\n\n // ECARTEMENT DU BOTTOM POUR LE DERNIER\n &:last-child{\n margin-bottom: 1em;\n }\n\n\n // ANIMATION DE fadeIn + fadeOut\n transition: opacity .5s ease-in-out;\n opacity: 0;\n\n &.notification-visible{\n opacity: 1;\n }\n\n\n // ANIMATION DE @HOVER\n &:hover{\n box-shadow: inset 0 0 1em #eee, 0 0 1em #555;\n }\n\n\n\n // TITRE ET BOULE DE COULEUR\n strong:first-child{\n\n text-transform: uppercase;\n padding-left: 1.5em;\n\n &:before{\n content: '';\n display: inline-block;\n position: absolute;\n top: 1.2em;\n left: 1em;\n width: .9em;\n height: .9em;\n\n border-radius: 50% / 50%;\n box-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n }\n\n }\n\n // DIFFERENTS THEMES\n // WARNING\n &[data-warning]{\n border-color: #dd6a45;\n border-bottom-color: darken(#dd6a45, 10);\n strong:first-child{ &:before{ background-color: #dd6a45; } }\n }\n // INFO\n &[data-info]{\n border-color: #2195da;\n border-bottom-color: darken(#2195da, 10);\n strong:first-child{ &:before{ background-color: #2195da; } }\n }\n // SUCCESS\n &[data-success]{\n border-color: #5fca4a;\n border-bottom-color: darken(#5fca4a, 10);\n strong:first-child{ &:before{ background-color: #5fca4a; } }\n }\n // ERROR\n &[data-error]{\n border-color: #d94747;\n border-bottom-color: darken(#d94747, 10);\n strong:first-child{ &:before{ background-color: #d94747; } }\n }\n\n\n }\n\n}\n" "body > #notification-container{\n\n\tdisplay: flex;\n\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\twidth: 100%;\n\n\tflex-direction: column;\n\tflex-wrap: nowrap;\n\n\tz-index: 200;\n\tpointer-events: none;\n\n\n\t.notification-element{\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\t\tmargin: .2em auto;\n\t\t\tpadding: 0 1em;\n\n\t\tborder-radius: 3px;\n\t\tborder: 1px solid #ddd;\n\t\tborder-bottom: 1px solid darken(#ddd, 10);\n\t\tbox-shadow: inset 0 0 1em #eee;\n\n\t\tbackground-color: #fff;\n\n\t\tpointer-events: all;\n\t\tcursor: default;\n\n\t\t// ECARTEMENT DU BOTTOM POUR LE DERNIER\n\t\t&:last-child{\n\t\t\tmargin-bottom: 1em;\n\t\t}\n\n\n\t\t// ANIMATION DE fadeIn + fadeOut\n\t\ttransition: opacity .5s ease-in-out;\n\t\topacity: 0;\n\n\t\t&.notification-visible{\n\t\t\topacity: 1;\n\t\t}\n\n\n\t\t// ANIMATION DE @HOVER\n\t\t&:hover{\n\t\t\tbox-shadow: inset 0 0 1em #eee, 0 0 1em #555;\n\t\t}\n\n\n\n\t\t// TITRE ET BOULE DE COULEUR\n\t\tstrong:first-child{\n\n\t\t\ttext-transform: uppercase;\n\t\t\tpadding-left: 1.5em;\n\n\t\t\t&:before{\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 1.2em;\n\t\t\t\tleft: 1em;\n\t\t\t\twidth: .9em;\n\t\t\t\theight: .9em;\n\n\t\t\t\tborder-radius: 50% / 50%;\n\t\t\t\tbox-shadow: inset -1px 1px 2px rgba(50, 50, 50, .5);\n\t\t\t}\n\n\t\t}\n\n\t\t// DIFFERENTS THEMES\n\t\t// WARNING\n\t\t&[data-warning]{\n\t\t\tborder-color: #dd6a45;\n\t\t\tborder-bottom-color: darken(#dd6a45, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #dd6a45; } }\n\t\t}\n\t\t// INFO\n\t\t&[data-info]{\n\t\t\tborder-color: #2195da;\n\t\t\tborder-bottom-color: darken(#2195da, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #2195da; } }\n\t\t}\n\t\t// SUCCESS\n\t\t&[data-success]{\n\t\t\tborder-color: #5fca4a;\n\t\t\tborder-bottom-color: darken(#5fca4a, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #5fca4a; } }\n\t\t\t}\n\t\t// ERROR\n\t\t&[data-error]{\n\t\t\tborder-color: #d94747;\n\t\t\tborder-bottom-color: darken(#d94747, 10);\n\t\t\tstrong:first-child{ &:before{ background-color: #d94747; } }\n\t\t}\n\n\n\t}\n\n}\n"
], ],
"mappings": "AAAA,IAAI,CAAG,uBAAuB,AAAA,CAE1B,OAAO,CAAE,IAAK,CACd,QAAQ,CAAE,QAAS,CACf,MAAM,CAAE,CAAE,CACV,IAAI,CAAE,CAAE,CACR,KAAK,CAAE,IAAK,CAEhB,cAAc,CAAE,MAAO,CACvB,SAAS,CAAE,MAAO,CAElB,OAAO,CAAE,GAAI,CACb,cAAc,CAAE,IAAK,CA2FxB,AAvGD,IAAI,CAAG,uBAAuB,CAe1B,qBAAqB,AAAA,CACjB,OAAO,CAAE,KAAM,CACf,QAAQ,CAAE,QAAS,CACf,MAAM,CAAE,SAAU,CAClB,OAAO,CAAE,KAAM,CAEnB,aAAa,CAAE,GAAI,CACnB,MAAM,CAAE,cAAe,CACvB,aAAa,C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e7B,qBAAqB,CA6DnB,AAAA,YAAC,AAAA,EAGD,MAAM,AAAA,YAAY,AAAG,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AA/E/D,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CAmEnB,AAAA,SAAC,AAAA,CAAU,CACX,YAAY,CAAE,OAAQ,CACtB,mBAAmB,CAAE,OAAM,CAE3B,AAtFH,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CAmEnB,AAAA,SAAC,AAAA,EAGD,MAAM,AAAA,YAAY,AAAG,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AArF/D,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CAyEnB,AAAA,YAAC,AAAA,CAAa,CACd,YAAY,CAAE,OAAQ,CACtB,mBAAmB,CAAE,OAAM,CAE1B,AA5FJ,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CAyEnB,AAAA,YAAC,AAAA,EAGD,MAAM,AAAA,YAAY,AAAG,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI,AA3F/D,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CA+EnB,AAAA,UAAC,AAAA,CAAW,CACZ,YAAY,CAAE,OAAQ,CACtB,mBAAmB,CAAE,OAAM,CAE3B,AAlGH,IAAI,CAAG,uBAAuB,CAe7B,qBAAqB,CA+EnB,AAAA,UAAC,AAAA,EAGD,MAAM,AAAA,YAAY,AAAG,OAAO,AAAA,CAAE,gBAAgB,CAAE,OAAQ,CAAI",
"names": [] "names": []
} }

View File

@ -18,6 +18,8 @@
/*******************************************/ /*******************************************/
define('__REDIRECT__', 'Location: /dashboard/');
@ -78,7 +80,7 @@
/* [1] On cree les regles de routage /* [1] On cree les regles de routage
===================================================*/ ===================================================*/
// Racine -> page d'accueil // Racine -> page d'accueil
$R->get('/?', function(){ header('Location: /dashboard/'); }); $R->get('/?', function(){ header(__REDIRECT__); });
/* [2] On recupere la liste des pages du site /* [2] On recupere la liste des pages du site
@ -105,8 +107,8 @@
// N'importe -> page d'accueil // N'importe -> page d'accueil
$R->get('.+', function(){ header('Location: /dashboard/'); }); $R->get('.+', function(){ header(__REDIRECT__); });
$R->post('.+', function(){ header('Location: /dashboard/'); }); $R->post('.+', function(){ header(__REDIRECT__); });

View File

@ -6,4 +6,4 @@ c.length;a++)c[a].remClass("active");if(null!=b)for(b.addClass("active"),c=$$('#
function navMenu(a){var c=$('#WRAPPER > #MENU-SIDE > span[data-link="'+pageManager.page+'"]'),b=null,b=a instanceof Element?a:null,b="string"==typeof a?$('#WRAPPER > #MENU-SIDE > span[data-link="'+a+'"]'):b,b=null==b?$('#WRAPPER > #MENU-SIDE > span[data-link="'+pageManager.pagelist[0]+'"]'):b;if(null==b)return!1;null!=c&&c.remClass("active");null!=b&&b.addClass("active");b.getData("link")&&(DOM.HEADER.addClass("loading"),pageManager.setPage(b.getData("link")),pageManager.activeXHR.addEventListener("loadend", function navMenu(a){var c=$('#WRAPPER > #MENU-SIDE > span[data-link="'+pageManager.page+'"]'),b=null,b=a instanceof Element?a:null,b="string"==typeof a?$('#WRAPPER > #MENU-SIDE > span[data-link="'+a+'"]'):b,b=null==b?$('#WRAPPER > #MENU-SIDE > span[data-link="'+pageManager.pagelist[0]+'"]'):b;if(null==b)return!1;null!=c&&c.remClass("active");null!=b&&b.addClass("active");b.getData("link")&&(DOM.HEADER.addClass("loading"),pageManager.setPage(b.getData("link")),pageManager.activeXHR.addEventListener("loadend",
function(){1<=pageManager.vars.length&&null!=$('#CONTAINER > section[data-sublink="'+pageManager.vars[0]+'"]')?navSubMenu(pageManager.vars[0]):navSubMenu(null);var a=$("#MENU-SIDE > span[data-link="+pageManager.page+"] + div.sub");null!=a&&a.addEventListener("click",function(a){for(a=a.target;a!=document.body&&!a.getData("sublink");)a=a.parentNode;a.getData("sublink")&&navSubMenu(a)},!1);DOM.HEADER.remClass("loading")},!1))} function(){1<=pageManager.vars.length&&null!=$('#CONTAINER > section[data-sublink="'+pageManager.vars[0]+'"]')?navSubMenu(pageManager.vars[0]):navSubMenu(null);var a=$("#MENU-SIDE > span[data-link="+pageManager.page+"] + div.sub");null!=a&&a.addEventListener("click",function(a){for(a=a.target;a!=document.body&&!a.getData("sublink");)a=a.parentNode;a.getData("sublink")&&navSubMenu(a)},!1);DOM.HEADER.remClass("loading")},!1))}
DOM.MENUSIDE.addEventListener("click",function(a){for(a=a.target;a!=document.body&&!a.getData("link");)a=a.parentNode;a.getData("link")&&navMenu(a.getData("link"))},!1);function reload(){navMenu(pageManager.page)}var LOGIN={show:document.getElementById("user-data"),hide:document.getElementById("login-close"),page:document.getElementById("LOGIN")};LOGIN.show.addEventListener("click",function(a){LOGIN.page.className="active"},!1); DOM.MENUSIDE.addEventListener("click",function(a){for(a=a.target;a!=document.body&&!a.getData("link");)a=a.parentNode;a.getData("link")&&navMenu(a.getData("link"))},!1);function reload(){navMenu(pageManager.page)}var LOGIN={show:document.getElementById("user-data"),hide:document.getElementById("login-close"),page:document.getElementById("LOGIN")};LOGIN.show.addEventListener("click",function(a){LOGIN.page.className="active"},!1);
LOGIN.hide.addEventListener("click",function(a){LOGIN.page.className=""},!1);pageManagerClass.prototype.ajax("/f/json/menu/conf",function(a){var c=[];a=JSON.parse(a);for(var b=0;b<a.length;b++)c.push(a[b].attributes["data-link"]);pageManager=new pageManagerClass;pageManager.setPage(null,"/view",DOM.CONTAINER,c);navMenu(pageManager.page)},"GET"); LOGIN.hide.addEventListener("click",function(a){LOGIN.page.className=""},!1);pageManagerClass.prototype.ajax("/f/json/menu/conf",function(a){var c=[];a=JSON.parse(a);for(var b=0;b<a.length;b++)c.push(a[b].attributes["data-link"]);pageManager=new pageManagerClass;pageManager.setPage(null,"/view",DOM.CONTAINER,c,null);navMenu(pageManager.page)},"GET");

View File

@ -257,7 +257,7 @@ pageManagerClass.prototype.ajax('/f/json/menu/conf', function(pagelistSerialized
/* (1) On initialisa pageManager */ /* (1) On initialisa pageManager */
pageManager = new pageManagerClass(); pageManager = new pageManagerClass();
pageManager.setPage(null, '/view', DOM.CONTAINER, pagelist ); pageManager.setPage(null, '/view', DOM.CONTAINER, pagelist, null );
/* (2) On charge la premiere page */ /* (2) On charge la premiere page */
navMenu(pageManager.page); navMenu(pageManager.page);

View File

@ -1,9 +1,9 @@
function pageManagerClass(){}var ptrPageManagerClass; function pageManagerClass(){}var ptrPageManagerClass;
pageManagerClass.prototype={depJS:null,depCSS:null,xhr:[],activeXHR:null,page:null,vars:[],path:"",jsPath:"js",cssPath:"css",pagelist:null,container:null,ajax:function(b,c,f,a){for(var d=0;d<this.xhr.length;d++)this.xhr=this.xhr.slice(0,d-1).concat(this.xhr.slice(d,this.xhr.length-1));var e;e=window.XMLHttpRequest?this.xhr.push(new XMLHttpRequest)-1:this.xhr.push(new ActiveXObject("Microsoft.XMLHttpRequest"))-1;this.activeXHR=this.xhr[e];var g=this;this.xhr[e].onreadystatechange=function(){4==g.xhr[e].readyState&& pageManagerClass.prototype={depJS:null,depCSS:null,xhr:[],activeXHR:null,page:null,vars:[],root:"",path:"",jsPath:"js",cssPath:"css",pagelist:null,container:null,ajax:function(b,d,e,a){for(var f=0;f<this.xhr.length;f++)this.xhr=this.xhr.slice(0,f-1).concat(this.xhr.slice(f,this.xhr.length-1));var c;c=window.XMLHttpRequest?this.xhr.push(new XMLHttpRequest)-1:this.xhr.push(new ActiveXObject("Microsoft.XMLHttpRequest"))-1;this.activeXHR=this.xhr[c];var g=this;this.xhr[c].onreadystatechange=function(){4==
(-1<[0,200].indexOf(g.xhr[e].status)?c(g.xhr[e].responseText):c())};f="string"==typeof f&&/^POST|GET$/i.test(f)?f.toUpperCase():"POST";a="POST"==f&&"object"==typeof a&&a instanceof FormData?a:null;this.xhr[e].open(f,b,!0);this.xhr[e].send(a);return this},explodeURL:function(b){b=1<=arguments.length?b:document.URL;if(null!=this.pagelist&&/^(?:(?:https?:\/\/)?[^\/]+)\/([a-z0-9_]+)\/?(?:\/((?:.+\/)+)\/?)?$/i.test(b)){for(var c=RegExp.$2.split("/");""==c[c.length-1];)c.pop();return-1<this.pagelist.indexOf(RegExp.$1)? g.xhr[c].readyState&&(-1<[0,200].indexOf(g.xhr[c].status)?d(g.xhr[c].responseText):d())};e="string"==typeof e&&/^POST|GET$/i.test(e)?e.toUpperCase():"POST";a="POST"==e&&"object"==typeof a&&a instanceof FormData?a:null;this.xhr[c].open(e,b,!0);this.xhr[c].send(a);return this},explodeURL:function(b){b=1<=arguments.length?b:document.URL;if(null!=this.pagelist&&/^(?:(?:https?:\/\/)?[^\/]+)\/([a-z0-9_]+)\/?(?:\/((?:.+\/)+)\/?)?$/i.test(b)){for(var d=RegExp.$2.split("/");""==d[d.length-1];)d.pop();return-1<
{page:RegExp.$1,"var":c}:null}return null},loadDependencies:function(){"object"==typeof this.depCSS&&this.depCSS instanceof Element&&this.depCSS.parentNode==document.head&&document.head.removeChild(this.depCSS);"object"==typeof this.depJS&&this.depJS instanceof Element&&this.depJS.parentNode==document.head&&document.head.removeChild(this.depJS);ptrPageManagerClass=this;this.ajax(this.path+"/"+this.cssPath+"/"+this.page+".css",function(b){null!=b?(ptrPageManagerClass.depCSS=document.createElement("link"), this.pagelist.indexOf(RegExp.$1)?{page:RegExp.$1,"var":d}:null}return null},loadDependencies:function(){"object"==typeof this.depCSS&&this.depCSS instanceof Element&&this.depCSS.parentNode==document.head&&document.head.removeChild(this.depCSS);"object"==typeof this.depJS&&this.depJS instanceof Element&&this.depJS.parentNode==document.head&&document.head.removeChild(this.depJS);ptrPageManagerClass=this;this.ajax(this.root+this.path+"/"+this.cssPath+"/"+this.page+".css",function(b){null!=b?(ptrPageManagerClass.depCSS=
ptrPageManagerClass.depCSS.rel="stylesheet",ptrPageManagerClass.depCSS.type="text/css",ptrPageManagerClass.depCSS.href=ptrPageManagerClass.path+"/"+ptrPageManagerClass.cssPath+"/"+ptrPageManagerClass.page+".css",document.head.appendChild(ptrPageManagerClass.depCSS)):console.warn("[loadDependencies_Error] - ("+ptrPageManagerClass.path+"/"+ptrPageManagerClass.cssPath+"/"+ptrPageManagerClass.page+".css)")});this.ajax(this.path+"/"+this.jsPath+"/"+this.page+".js",function(b){null!=b?(ptrPageManagerClass.depJS= document.createElement("link"),ptrPageManagerClass.depCSS.rel="stylesheet",ptrPageManagerClass.depCSS.type="text/css",ptrPageManagerClass.depCSS.href=ptrPageManagerClass.root+ptrPageManagerClass.path+"/"+ptrPageManagerClass.cssPath+"/"+ptrPageManagerClass.page+".css",document.head.appendChild(ptrPageManagerClass.depCSS)):console.warn("[loadDependencies_Error] - ("+ptrPageManagerClass.root+ptrPageManagerClass.path+"/"+ptrPageManagerClass.cssPath+"/"+ptrPageManagerClass.page+".css)")});this.ajax(this.root+
document.createElement("script"),ptrPageManagerClass.depJS.type="text/javascript",ptrPageManagerClass.depJS.src=ptrPageManagerClass.path+"/"+ptrPageManagerClass.jsPath+"/"+ptrPageManagerClass.page+".js",document.head.appendChild(ptrPageManagerClass.depJS)):console.warn("[loadDependencies_Error] - ("+ptrPageManagerClass.path+"/"+ptrPageManagerClass.jsPath+"/"+ptrPageManagerClass.page+".js)")})},updateURL:function(){0<this.vars.length?window.history.pushState(this.page,this.page,"/"+this.page+"/"+this.vars.join("/")+ this.path+"/"+this.jsPath+"/"+this.page+".js",function(b){null!=b?(ptrPageManagerClass.depJS=document.createElement("script"),ptrPageManagerClass.depJS.type="text/javascript",ptrPageManagerClass.depJS.src=ptrPageManagerClass.root+ptrPageManagerClass.path+"/"+ptrPageManagerClass.jsPath+"/"+ptrPageManagerClass.page+".js",document.head.appendChild(ptrPageManagerClass.depJS)):console.warn("[loadDependencies_Error] - ("+ptrPageManagerClass.root+ptrPageManagerClass.path+"/"+ptrPageManagerClass.jsPath+"/"+
"/"):window.history.pushState(this.page,this.page,"/"+this.page+"/")},setPage:function(b,c,f,a){var d="object"==typeof a&&a instanceof Array?a:null;if(null!=d)for(a=0;a<d.length&&(d="string"==typeof d[a]&&/^[a-z0-9_]+$/i.test(d[a])?d:null,null!=d);a++);this.pagelist=null!=d?d:this.pagelist;this.page=this.pagelist[0];this.path="string"==typeof c?c:this.path;this.container="object"==typeof f&&f instanceof Element?f:this.container;if(null!=this.pagelist&&null!=this.container)if("string"==typeof b&&-1< ptrPageManagerClass.page+".js)")})},updateURL:function(){0<this.vars.length?window.history.pushState(this.page,this.page,this.root+"/"+this.page+"/"+this.vars.join("/")+"/"):window.history.pushState(this.page,this.page,this.root+"/"+this.page+"/")},setPage:function(b,d,e,a,f){var c="object"==typeof a&&a instanceof Array?a:null;if(null!=c)for(a=0;a<c.length&&(c="string"==typeof c[a]&&/^[a-z0-9_]+$/i.test(c[a])?c:null,null!=c);a++);this.pagelist=null!=c?c:this.pagelist;this.page=this.pagelist[0];this.root=
this.pagelist.indexOf(b)){this.page=b;var e=this;b=new FormData;for(a=0;a<this.vars.length;a++)b.append(this.vars[a],null);this.ajax(this.path+"/"+this.page+".php",function(a){e.container.innerHTML=a;e.loadDependencies()},"POST",b);this.updateURL()}else if(c=this.explodeURL(),null!=c){this.page=c.page;var g=this;b=new FormData;for(a=this.vars.length=0;a<c["var"].length;a++)this.vars[a]=c["var"][a],b.append(this.vars[a],null);this.ajax(this.path+"/"+this.page+".php",function(a){g.container.innerHTML= "string"==typeof f?f:this.root;this.path="string"==typeof d?d:this.path;this.container="object"==typeof e&&e instanceof Element?e:this.container;if(null!=this.pagelist&&null!=this.container)if("string"==typeof b&&-1<this.pagelist.indexOf(b)){this.page=b;var g=this;b=new FormData;for(a=0;a<this.vars.length;a++)b.append(this.vars[a],null);this.ajax(this.root+this.path+"/"+this.page+".php",function(a){g.container.innerHTML=a;g.loadDependencies()},"POST",b);this.updateURL()}else if(d=this.explodeURL(),
a;g.loadDependencies()},"POST",b);this.updateURL()}else this.setPage(this.pagelist[0]);else console.warn("pagelist et container manquant");return this},refresh:function(){this.setPage(this.page);return this}}; null!=d){this.page=d.page;var h=this;b=new FormData;for(a=this.vars.length=0;a<d["var"].length;a++)this.vars[a]=d["var"][a],b.append(this.vars[a],null);this.ajax(this.root+this.path+"/"+this.page+".php",function(a){h.container.innerHTML=a;h.loadDependencies()},"POST",b);this.updateURL()}else this.setPage(this.pagelist[0]);else console.warn("pagelist et container manquant");return this},refresh:function(){this.setPage(this.page);return this}};

View File

@ -21,6 +21,7 @@ pageManagerClass.prototype = {
activeXHR: null, // Contiendra l'instance XHR (ajax) en cours activeXHR: null, // Contiendra l'instance XHR (ajax) en cours
page: null, // l'indice de la page courante dans pagelist page: null, // l'indice de la page courante dans pagelist
vars: [], // les variables suivant le nom de la page dans l'URL vars: [], // les variables suivant le nom de la page dans l'URL
root: '', // Racine du projet
path: '', // le chemin du dossier contenant les pages (.php) path: '', // le chemin du dossier contenant les pages (.php)
jsPath: 'js', // le chemin du dossier contenant les scripts (.js) jsPath: 'js', // le chemin du dossier contenant les scripts (.js)
cssPath: 'css', // le chemin du dossier contenant les feuilles de style (.css) cssPath: 'css', // le chemin du dossier contenant les feuilles de style (.css)
@ -132,26 +133,26 @@ pageManagerClass.prototype = {
ptrPageManagerClass = this; ptrPageManagerClass = this;
// si le fichier css existe // si le fichier css existe
this.ajax(this.path+'/'+this.cssPath+'/'+this.page+'.css', function(e){ this.ajax(this.root+this.path+'/'+this.cssPath+'/'+this.page+'.css', function(e){
if( e != null ){ // on charge la dépendance CSS si le fichier existe if( e != null ){ // on charge la dépendance CSS si le fichier existe
ptrPageManagerClass.depCSS = document.createElement('link'); ptrPageManagerClass.depCSS = document.createElement('link');
ptrPageManagerClass.depCSS.rel = 'stylesheet'; ptrPageManagerClass.depCSS.rel = 'stylesheet';
ptrPageManagerClass.depCSS.type = 'text/css'; ptrPageManagerClass.depCSS.type = 'text/css';
ptrPageManagerClass.depCSS.href = ptrPageManagerClass.path+'/'+ptrPageManagerClass.cssPath+'/'+ptrPageManagerClass.page+'.css'; ptrPageManagerClass.depCSS.href = ptrPageManagerClass.root+ptrPageManagerClass.path+'/'+ptrPageManagerClass.cssPath+'/'+ptrPageManagerClass.page+'.css';
document.head.appendChild(ptrPageManagerClass.depCSS); document.head.appendChild(ptrPageManagerClass.depCSS);
}else }else
console.warn('[loadDependencies_Error] - ('+ptrPageManagerClass.path+'/'+ptrPageManagerClass.cssPath+'/'+ptrPageManagerClass.page+'.css)'); console.warn('[loadDependencies_Error] - ('+ptrPageManagerClass.root+ptrPageManagerClass.path+'/'+ptrPageManagerClass.cssPath+'/'+ptrPageManagerClass.page+'.css)');
}); });
// si le fichier js existe // si le fichier js existe
this.ajax(this.path+'/'+this.jsPath+'/'+this.page+'.js', function(e){ this.ajax(this.root+this.path+'/'+this.jsPath+'/'+this.page+'.js', function(e){
if( e != null ){ // on charge la dépendance JS si le fichier existe if( e != null ){ // on charge la dépendance JS si le fichier existe
ptrPageManagerClass.depJS = document.createElement('script'); ptrPageManagerClass.depJS = document.createElement('script');
ptrPageManagerClass.depJS.type = 'text/javascript'; ptrPageManagerClass.depJS.type = 'text/javascript';
ptrPageManagerClass.depJS.src = ptrPageManagerClass.path+'/'+ptrPageManagerClass.jsPath+'/'+ptrPageManagerClass.page+'.js'; ptrPageManagerClass.depJS.src = ptrPageManagerClass.root+ptrPageManagerClass.path+'/'+ptrPageManagerClass.jsPath+'/'+ptrPageManagerClass.page+'.js';
document.head.appendChild(ptrPageManagerClass.depJS); document.head.appendChild(ptrPageManagerClass.depJS);
}else }else
console.warn('[loadDependencies_Error] - ('+ptrPageManagerClass.path+'/'+ptrPageManagerClass.jsPath+'/'+ptrPageManagerClass.page+'.js)'); console.warn('[loadDependencies_Error] - ('+ptrPageManagerClass.root+ptrPageManagerClass.path+'/'+ptrPageManagerClass.jsPath+'/'+ptrPageManagerClass.page+'.js)');
}); });
}, },
@ -161,9 +162,9 @@ pageManagerClass.prototype = {
======================================================================= */ ======================================================================= */
updateURL: function(){ updateURL: function(){
if( this.vars.length > 0 ) // si il y a des variables if( this.vars.length > 0 ) // si il y a des variables
window.history.pushState(this.page, this.page, '/'+this.page+'/'+this.vars.join('/')+'/'); window.history.pushState(this.page, this.page, this.root+'/'+this.page+'/'+this.vars.join('/')+'/');
else // s'il n'y en a pas else // s'il n'y en a pas
window.history.pushState(this.page, this.page, '/'+this.page+'/'); window.history.pushState(this.page, this.page, this.root+'/'+this.page+'/');
// on peut récupérer le nom de la page (quand on fait retour en arrière de l'historique) // on peut récupérer le nom de la page (quand on fait retour en arrière de l'historique)
// dans la variable : window.history.state // dans la variable : window.history.state
@ -185,7 +186,7 @@ pageManagerClass.prototype = {
*** la première page du tableau est la page par défaut (qui est chargée si l'URL ne contient *** la première page du tableau est la page par défaut (qui est chargée si l'URL ne contient
pas la page ou si la page de l'URL ne correspond à aucune page de la liste) pas la page ou si la page de l'URL ne correspond à aucune page de la liste)
========================================================================== */ ========================================================================== */
setPage: function(pName, pPath, pContainer, pPageList){ setPage: function(pName, pPath, pContainer, pPageList, pRoot){
// liste de pages si c'est un tableau // liste de pages si c'est un tableau
var pageList = ( typeof pPageList == 'object' && pPageList instanceof Array ) ? pPageList : null; // si this.pagelist n'est pas overwrite il vaut null var pageList = ( typeof pPageList == 'object' && pPageList instanceof Array ) ? pPageList : null; // si this.pagelist n'est pas overwrite il vaut null
@ -200,6 +201,8 @@ pageManagerClass.prototype = {
this.pagelist = ( pageList != null ) ? pageList : this.pagelist; this.pagelist = ( pageList != null ) ? pageList : this.pagelist;
// affecte à l'attribut page la page par défaut (premier élément de pagelist) // affecte à l'attribut page la page par défaut (premier élément de pagelist)
this.page = this.pagelist[0]; this.page = this.pagelist[0];
// Gestion de pRoot si racine autre que racine du vhost
this.root = ( typeof pRoot == 'string' ) ? pRoot : this.root;
// affecte pPath à l'attribut path s'il est renseigné // affecte pPath à l'attribut path s'il est renseigné
this.path = ( typeof pPath == 'string' ) ? pPath : this.path; this.path = ( typeof pPath == 'string' ) ? pPath : this.path;
/* on attribue le paramètre pContainer à l'attribut si il est spécifié */ /* on attribue le paramètre pContainer à l'attribut si il est spécifié */
@ -220,7 +223,7 @@ pageManagerClass.prototype = {
for( var i = 0 ; i < this.vars.length ; i++ ) for( var i = 0 ; i < this.vars.length ; i++ )
fd.append(this.vars[i], null); fd.append(this.vars[i], null);
this.ajax(this.path+'/'+this.page+'.php', function(e){ this.ajax(this.root+this.path+'/'+this.page+'.php', function(e){
ptrPageManagerClass.container.innerHTML = e; ptrPageManagerClass.container.innerHTML = e;
ptrPageManagerClass.loadDependencies(); ptrPageManagerClass.loadDependencies();
}, 'POST', fd); }, 'POST', fd);
@ -246,7 +249,7 @@ pageManagerClass.prototype = {
fd.append(this.vars[i], null); fd.append(this.vars[i], null);
} }
this.ajax(this.path+'/'+this.page+'.php', function(e){ this.ajax(this.root+this.path+'/'+this.page+'.php', function(e){
ptrThis.container.innerHTML = e; ptrThis.container.innerHTML = e;
ptrThis.loadDependencies(); ptrThis.loadDependencies();
}, 'POST', fd); }, 'POST', fd);

View File

@ -432,7 +432,8 @@
array_push($formattedRelations, array( array_push($formattedRelations, array(
'source' => $relation['idA'], 'source' => $relation['idA'],
'target' => $relation['idB'], 'target' => $relation['idB'],
'weight' => ($relation['idA']==$subjectId) ? .1 : 1 // plus de poids aux relations alter/alter 'weight' => ($relation['idA']==$subjectId) ? .1 : 1, // plus de poids aux relations alter/alter
'type' => 'Undirected'
)); ));
// {2} On ajoute au contenu // // {2} On ajoute au contenu //
@ -484,7 +485,8 @@
array_push($formattedRelations, array( array_push($formattedRelations, array(
'source' => $relation['idA'], 'source' => $relation['idA'],
'target' => $relation['idB'], 'target' => $relation['idB'],
'weight' => ($relation['idA']==$subjectId) ? .1 : 1 // plus de poids aux relations alter/alter 'weight' => ($relation['idA']==$subjectId) ? .1 : 1, // plus de poids aux relations alter/alter
'type' => 'Undirected'
)); ));
// {2} On ajoute au contenu // // {2} On ajoute au contenu //
@ -536,7 +538,8 @@
array_push($formattedRelations, array( array_push($formattedRelations, array(
'source' => $relation['idA'], 'source' => $relation['idA'],
'target' => $relation['idB'], 'target' => $relation['idB'],
'weight' => ($relation['idA']==$subjectId) ? .1 : 1 // plus de poids aux relations alter/alter 'weight' => ($relation['idA']==$subjectId) ? .1 : 1, // plus de poids aux relations alter/alter
'type' => 'Undirected'
)); ));
// {2} On ajoute au contenu // // {2} On ajoute au contenu //

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_21_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_574082c3eb3eb.php');
unlink('/var/www/socioview/tmp/content_574082c3eb3eb.php');
unlink(__FILE__);
?>

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_27_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_5747fcf4ce503.php');
unlink('/var/www/socioview/tmp/content_5747fcf4ce503.php');
unlink(__FILE__);
?>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -22,11 +22,11 @@
<section data-sublink='presentation'> <section data-sublink='presentation'>
<center> <center>
<img src='/f/svg/icon/st'/> <img src='/subfolder/f/svg/icon/st'/>
<img src='/f/svg/sms/st/credits'/> <img src='/subfolder/f/svg/sms/st/credits'/>
<img src='/f/jpg/cnrs/st/credits'/> <img src='/subfolder/f/jpg/cnrs/st/credits'/>
<img src='/f/png/univ_midi/st/credits'/> <img src='/subfolder/f/png/univ_midi/st/credits'/>
<img src='/f/png/ut2/st/credits'/> <img src='/subfolder/f/png/ut2/st/credits'/>
</center> </center>
<p>Bienvenue sur la Web Application dévéloppée par des chercheurs du CNRS appartenant au LabEx SMS (Structuration des Mondes Sociaux) de l'université de Toulouse.</p> <p>Bienvenue sur la Web Application dévéloppée par des chercheurs du CNRS appartenant au LabEx SMS (Structuration des Mondes Sociaux) de l'université de Toulouse.</p>

4
view/js/data-min.js vendored
View File

@ -1,5 +1,5 @@
var exportSubjectList=$("#export_subject-list"),exportSubjectAdd=$("#export_add-subject"),exportDeflater=new FormDeflater(document.getElementById("export-form"),["input"],["data-name"]);exportSubjectAdd.addEventListener("click",function(b){b=document.createElement("input");b.type="number";b.dataset.name="subjects";b.placeholder="Sujet";b.style="width: 5em; display: block;";exportSubjectList.appendChild(b)},!1); var exportSubjectList=$("#export_subject-list"),exportSubjectAdd=$("#export_add-subject"),exportDeflater=new FormDeflater(document.getElementById("export-form"),["input"],["data-name"]);exportSubjectAdd.addEventListener("click",function(b){b=document.createElement("input");b.type="number";b.dataset.name="subjects";b.placeholder="Sujet";b.style="width: 5em; display: block;";exportSubjectList.appendChild(b)},!1);
$("#export-form #export_export-all").addEventListener("click",function(b){var a=(new FormDeflater(exportSubjectList,["input"],["data-name"])).deflate().subjects;b=[];a instanceof Array||(a=[a]);for(var c=0;c<a.length;c++)0<a[c].length&&!isNaN(a[c])&&b.push(a[c]);a=exportDeflater.deflate();c={path:"download/multiple",phone:"1"==a.phone,facebook:"1"==a.facebook,survey:"1"==a.survey,all:"all"==a.group};"all"!=a.group&&0<b.length&&(c.subjects=b);api.send(c,function(a){if(0!=a.ModuleError)return!1;document.location= $("#export-form #export_export-all").addEventListener("click",function(b){var a=(new FormDeflater(exportSubjectList,["input"],["data-name"])).deflate().subjects;b=[];a instanceof Array||(a=[a]);for(var c=0;c<a.length;c++)0<a[c].length&&!isNaN(a[c])&&b.push(a[c]);a=exportDeflater.deflate();c={path:"download/multiple",phone:"1"==a.phone,facebook:"1"==a.facebook,survey:"1"==a.survey,all:"all"==a.group};"all"!=a.group&&0<b.length&&(c.subjects=b);api.send(c,function(a){if(0!=a.ModuleError)return!1;document.location=
a.link;Notification.success("OK","Lancement du t\u00e9l\u00e9chargement..")})},!1);var chartsSubjectList=$("#charts_subject-list"),chartsSubjectAdd=$("#charts_add-subject"),chartsDeflater=new FormDeflater(document.getElementById("charts-form"),["input"],["data-name"]);chartsSubjectAdd.addEventListener("click",function(b){b=document.createElement("input");b.type="number";b.dataset.name="subjects";b.placeholder="Sujet";b.style="width: 5em; display: block;";chartsSubjectList.appendChild(b)},!1); a.link;Notification.success("OK","Lancement du t\u00e9l\u00e9chargement..")})},!1);var chartsSubjectList=$("#charts_subject-list"),chartsSubjectAdd=$("#charts_add-subject"),chartsDeflater=new FormDeflater(document.getElementById("charts-form"),["input"],["data-name"]);chartsSubjectAdd.addEventListener("click",function(b){b=document.createElement("input");b.type="number";b.dataset.name="subjects";b.placeholder="Sujet";b.style="width: 5em; display: block;";chartsSubjectList.appendChild(b)},!1);
$("#charts-form #charts_export-all").addEventListener("click",function(b){var a=(new FormDeflater(chartsSubjectList,["input"],["data-name"])).deflate().subjects;b=[];a instanceof Array||(a=[a]);for(var c=0;c<a.length;c++)0<a[c].length&&!isNaN(a[c])&&b.push(a[c]);a=chartsDeflater.deflate();c={path:"download/chart",phone:"1"==a.phone,facebook:"1"==a.facebook,survey:"1"==a.survey,all:"all"==a.group};"all"!=a.group&&0<b.length&&(c.subjects=b);api.send(c,function(a){console.warn(a);if(0!=a.ModuleError)return!1; $("#charts-form #charts_export-all").addEventListener("click",function(b){var a=(new FormDeflater(chartsSubjectList,["input"],["data-name"])).deflate().subjects;b=[];a instanceof Array||(a=[a]);for(var c=0;c<a.length;c++)0<a[c].length&&!isNaN(a[c])&&b.push(a[c]);a=chartsDeflater.deflate();c={path:"download/chart",phone:"1"==a.phone,facebook:"1"==a.facebook,survey:"1"==a.survey,all:"all"==a.group};"all"!=a.group&&0<b.length&&(c.subjects=b);api.send(c,function(a){if(0!=a.ModuleError)return!1;document.location=
document.location=a.link;Notification.success("OK","Lancement du t\u00e9l\u00e9chargement..")})},!1); a.link;Notification.success("OK","Lancement du t\u00e9l\u00e9chargement..")})},!1);