Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Compare revisions
1d4a3c4a07b673da7bac815c06767d7b1b5876f7 to develop
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
geocontrib/geocontrib-frontend
Select target project
No results found
develop
Select Git revision
Swap
Target
ext_matthieu/geocontrib-frontend
Select target project
geocontrib/geocontrib-frontend
ext_matthieu/geocontrib-frontend
fnecas/geocontrib-frontend
MatthieuE/geocontrib-frontend
4 results
1d4a3c4a07b673da7bac815c06767d7b1b5876f7
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/views/registration/Login.vue
+0
-111
0 additions, 111 deletions
src/views/registration/Login.vue
vue.config.js
+54
-43
54 additions, 43 deletions
vue.config.js
webpack.config.js
+18
-0
18 additions, 0 deletions
webpack.config.js
with
72 additions
and
154 deletions
src/views/registration/Login.vue
deleted
100644 → 0
View file @
1d4a3c4a
<
template
>
<div>
<div
class=
"row"
>
<div
class=
"fourteen wide column"
>
<img
class=
"ui centered small image"
:src=
"logo"
/>
<h2
class=
"ui center aligned icon header"
>
<div
class=
"content"
>
{{
APPLICATION_NAME
}}
<div
class=
"sub header"
>
{{
APPLICATION_ABSTRACT
}}
</div>
</div>
</h2>
</div>
</div>
<div
class=
"row"
>
<div
class=
"six wide column"
>
<h3
class=
"ui horizontal divider header"
>
CONNEXION
</h3>
<div
v-if=
"form.errors"
class=
"ui warning message"
>
<div
class=
"header"
>
Les informations d'identification sont incorrectes.
</div>
NB: Seuls les comptes actifs peuvent se connecter.
</div>
<form
class=
"ui form"
role=
"form"
type=
"post"
@
submit.prevent=
"login"
>
<div
class=
"ui stacked secondary segment"
>
<div
class=
"six field required"
>
<div
class=
"ui left icon input"
>
<i
class=
"user icon"
></i>
<input
v-model=
"username_value"
type=
"text"
name=
"username"
placeholder=
"Utilisateur"
/>
</div>
</div>
<div
class=
"six field required"
>
<div
class=
"ui left icon input"
>
<i
class=
"lock icon"
></i>
<input
v-model=
"password_value"
type=
"password"
name=
"password"
placeholder=
"Mot de passe"
/>
</div>
</div>
<button
class=
"ui fluid large teal submit button"
type=
"submit"
>
Login
</button>
</div>
</form>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
"
Login
"
,
data
()
{
return
{
username_value
:
null
,
password_value
:
null
,
logged
:
false
,
form
:
{
errors
:
null
,
},
};
},
computed
:
{
logo
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_LOGO_PATH
;
},
APPLICATION_NAME
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_APPLICATION_NAME
;
},
APPLICATION_ABSTRACT
()
{
return
this
.
$store
.
state
.
configuration
.
VUE_APP_APPLICATION_ABSTRACT
;
},
},
methods
:
{
login
()
{
this
.
$store
.
dispatch
(
"
LOGIN
"
,
{
username
:
this
.
username_value
,
password
:
this
.
password_value
,
})
.
then
((
status
)
=>
{
if
(
status
===
200
)
{
this
.
form
.
errors
=
null
;
}
else
if
(
status
===
"
error
"
)
{
this
.
form
.
errors
=
status
;
}
})
.
catch
();
},
},
mounted
()
{
if
(
this
.
$store
.
state
.
user
)
{
this
.
$store
.
commit
(
"
DISPLAY_MESSAGE
"
,
"
Vous êtes déjà connecté, vous allez être redirigé vers la page d'accueil.
"
);
setTimeout
(()
=>
this
.
$router
.
push
(
"
/
"
),
3100
);
}
},
};
</
script
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
ee17a921
const
webpack
=
require
(
'
webpack
'
)
const
fs
=
require
(
'
fs
'
)
const
packageJson
=
fs
.
readFileSync
(
'
./package.json
'
)
const
version
=
JSON
.
parse
(
packageJson
).
version
||
0
const
webpack
=
require
(
'
webpack
'
);
const
fs
=
require
(
'
fs
'
);
const
packageJson
=
fs
.
readFileSync
(
'
./package.json
'
);
const
version
=
JSON
.
parse
(
packageJson
).
version
||
0
;
module
.
exports
=
{
publicPath
:
'
/geocontrib/
'
,
devServer
:
{
proxy
:
{
'
^/api
'
:
{
target
:
'
https://geocontrib.dev.neogeo.fr/api
'
,
ws
:
true
,
changeOrigin
:
true
}
}
publicPath
:
'
/geocontrib/
'
,
devServer
:
{
proxy
:
{
'
^/api
'
:
{
target
:
'
https://geocontrib.dev.neogeo.fr/api
'
,
ws
:
true
,
changeOrigin
:
true
}
}
},
pwa
:
{
workboxPluginMode
:
'
InjectManifest
'
,
workboxOptions
:
{
swSrc
:
'
src/service-worker.js
'
,
exclude
:
[
/
\.
map$/
,
/config
\/
config.*
\.
json$/
,
/manifest
\.
json$/
],
},
pwa
:
{
workboxPluginMode
:
'
InjectManifest
'
,
workboxOptions
:
{
swSrc
:
'
src/service-worker.js
'
,
exclude
:
[
/
\.
map$/
,
/config
\/
config.*
\.
json$/
,
/manifest
\.
json$/
],
},
iconPaths
:
{
faviconSVG
:
null
,
favicon32
:
null
,
favicon16
:
null
,
appleTouchIcon
:
null
,
maskIcon
:
null
,
msTileImage
:
null
,
},
themeColor
:
'
#1da025
'
},
configureWebpack
:
{
plugins
:
[
new
webpack
.
DefinePlugin
({
'
process.env
'
:
{
PACKAGE_VERSION
:
'
"
'
+
version
+
'
"
'
}
})
]
iconPaths
:
{
faviconSVG
:
null
,
favicon32
:
null
,
favicon16
:
null
,
appleTouchIcon
:
null
,
maskIcon
:
null
,
msTileImage
:
null
,
},
// the rest of your original module.exports code goes here
}
themeColor
:
'
#1da025
'
},
configureWebpack
:
{
devtool
:
'
source-map
'
,
plugins
:
[
new
webpack
.
DefinePlugin
({
'
process.env
'
:
{
PACKAGE_VERSION
:
'
"
'
+
version
+
'
"
'
}
})
]
},
transpileDependencies
:
[
// Add dependencies that use modern JavaScript syntax, based on encountered errors
'
ol
'
,
'
color-rgba
'
,
'
color-parse
'
,
'
@sentry/browser
'
,
'
@sentry/core
'
,
'
@sentry/vue
'
,
'
@sentry-internal
'
]
};
This diff is collapsed.
Click to expand it.
webpack.config.js
0 → 100644
View file @
ee17a921
module
.
exports
=
{
module
:
{
rules
:
[
{
test
:
/
\.
js$/
,
exclude
:
/node_modules/
,
use
:
{
loader
:
'
babel-loader
'
}
},
{
test
:
/
\.
vue$/
,
loader
:
'
vue-loader
'
}
]
}
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Prev
1
…
5
6
7
8
9
Next