Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
fc083070
Commit
fc083070
authored
3 years ago
by
Henrik Askjer
Browse files
Options
Downloads
Patches
Plain Diff
Revert merges
parent
1aa68596
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+1
-6
1 addition, 6 deletions
package.json
src/components/Article.vue
+2
-52
2 additions, 52 deletions
src/components/Article.vue
src/main.js
+0
-12
0 additions, 12 deletions
src/main.js
with
3 additions
and
70 deletions
package.json
+
1
−
6
View file @
fc083070
...
@@ -8,20 +8,15 @@
...
@@ -8,20 +8,15 @@
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
@fortawesome/fontawesome-svg-core
"
:
"
^1.2.35
"
,
"
@fortawesome/free-brands-svg-icons
"
:
"
^5.15.3
"
,
"
@fortawesome/free-solid-svg-icons
"
:
"
^5.15.3
"
,
"
@fortawesome/vue-fontawesome
"
:
"
^2.0.2
"
,
"
axios
"
:
"
^0.19.2
"
,
"
axios
"
:
"
^0.19.2
"
,
"
core-js
"
:
"
^3.6.5
"
,
"
core-js
"
:
"
^3.6.5
"
,
"
debounce
"
:
"
^1.2.1
"
,
"
debounce
"
:
"
^1.2.1
"
,
"
inflection-table
"
:
"
https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/0.2.19/raw/module.tar.gz?job=publish
"
,
"
inflection-table
"
:
"
https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/0.2.19/raw/module.tar.gz?job=publish
"
,
"
vue
"
:
"
^2.6.1
4
"
,
"
vue
"
:
"
^2.6.1
2
"
,
"
vue-awesome
"
:
"
^3.5.4
"
,
"
vue-awesome
"
:
"
^3.5.4
"
,
"
vue-material-design-icons
"
:
"
^4.11.0
"
,
"
vue-material-design-icons
"
:
"
^4.11.0
"
,
"
vue-plausible
"
:
"
^1.1.4
"
,
"
vue-plausible
"
:
"
^1.1.4
"
,
"
vue-router
"
:
"
^3.5.1
"
,
"
vue-router
"
:
"
^3.5.1
"
,
"
vue-social-sharing
"
:
"
^3.0.8
"
,
"
vuetify
"
:
"
^2.4.8
"
"
vuetify
"
:
"
^2.4.8
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/components/Article.vue
+
2
−
52
View file @
fc083070
...
@@ -32,36 +32,9 @@
...
@@ -32,36 +32,9 @@
</router-link>
</router-link>
</div>
</div>
</div>
</div>
<div
class=
"share"
v-if=
"webShareApiSupported"
>
</article>
<button
@
click=
"shareViaWebShare"
>
Del ordet
<font-awesome-icon
icon=
"share-alt-square"
size =
"lg"
/>
</button>
</div>
<div
class=
"share"
v-else
>
<button
class=
"share-button"
>
<ShareNetwork
network=
"facebook"
:url=
"share_link"
title=
"TITLE"
description=
"DESCRIPTION"
quote=
"QUOTE"
>
<font-awesome-icon
:icon=
"['fab', 'facebook-square']"
size=
"lg"
/>
</ShareNetwork>
</button>
<button
class=
"share-button"
>
<ShareNetwork
network=
"twitter"
:url=
"share_link"
title=
"TITLE"
description=
"DESCRIPTION"
hashtags=
"Ordbøkene"
>
<font-awesome-icon
:icon=
"['fab', 'twitter-square']"
size=
"lg"
/>
</ShareNetwork>
</button>
</div>
</article>
</
template
>
</
template
>
<
script
src=
"/dist/vue-social-sharing.js"
></
script
>
<
script
>
<
script
>
import
DefElement
from
'
./DefElement.vue
'
import
DefElement
from
'
./DefElement.vue
'
import
Definition
from
'
./Definition.vue
'
import
Definition
from
'
./Definition.vue
'
...
@@ -101,20 +74,13 @@ export default {
...
@@ -101,20 +74,13 @@ export default {
props
:
{
props
:
{
article
:
Object
article
:
Object
},
},
computed
:
{
computed
:
{
webShareApiSupported
()
{
return
navigator
.
share
},
link_to_self
:
function
()
{
link_to_self
:
function
()
{
return
{
return
{
ref
:
'
/
'
+
this
.
dictionary
+
'
/
'
+
this
.
article
.
article_id
+
'
/
'
+
encodeURIComponent
(
this
.
article
.
lemmas
[
0
].
lemma
),
ref
:
'
/
'
+
this
.
dictionary
+
'
/
'
+
this
.
article
.
article_id
+
'
/
'
+
encodeURIComponent
(
this
.
article
.
lemmas
[
0
].
lemma
),
article
:
this
.
article
article
:
this
.
article
}
}
},
},
share_link
:
function
()
{
let
host
=
window
.
location
.
hostname
===
'
localhost
'
?
'
https://dev.ordbok.uib.no
'
:
'
https://
'
+
window
.
location
.
host
return
host
+
"
/
"
+
this
.
dictionary
+
'
/
'
+
this
.
article
.
article_id
+
'
/
'
+
encodeURIComponent
(
this
.
article
.
lemmas
[
0
].
lemma
)
},
dictionary
:
function
()
{
dictionary
:
function
()
{
return
this
.
article
.
dictionary
return
this
.
article
.
dictionary
},
},
...
@@ -138,13 +104,6 @@ export default {
...
@@ -138,13 +104,6 @@ export default {
Header
Header
},
},
methods
:
{
methods
:
{
shareViaWebShare
()
{
navigator
.
share
({
title
:
'
Title to be shared
'
,
text
:
'
Text to be shared
'
,
url
:
'
URL to be shared
'
})
},
article_link_click
:
function
(
item
)
{
article_link_click
:
function
(
item
)
{
this
.
$emit
(
'
article-click
'
,
item
)
this
.
$emit
(
'
article-click
'
,
item
)
},
},
...
@@ -182,15 +141,6 @@ h3 {
...
@@ -182,15 +141,6 @@ h3 {
font-variant
:
small-caps
;
font-variant
:
small-caps
;
}
}
div
.share
{
color
:
#560027
;
padding-top
:
24px
;
}
.share-button
{
padding-right
:
4px
;
}
section
.etymology
>
h3
,
section
.pronunciation
>
h3
{
section
.etymology
>
h3
,
section
.pronunciation
>
h3
{
display
:
inline
;
display
:
inline
;
font-size
:
14px
;
font-size
:
14px
;
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
0
−
12
View file @
fc083070
...
@@ -7,18 +7,6 @@ import VueRouter from 'vue-router'
...
@@ -7,18 +7,6 @@ import VueRouter from 'vue-router'
import
{
VuePlausible
}
from
'
vue-plausible
'
import
{
VuePlausible
}
from
'
vue-plausible
'
import
vuetify
from
'
./plugins/vuetify
'
import
vuetify
from
'
./plugins/vuetify
'
import
VueSocialSharing
from
'
vue-social-sharing
'
Vue
.
use
(
VueSocialSharing
);
import
{
library
}
from
'
@fortawesome/fontawesome-svg-core
'
import
{
faShareAltSquare
}
from
'
@fortawesome/free-solid-svg-icons
'
import
{
faFacebookSquare
,
faTwitterSquare
}
from
'
@fortawesome/free-brands-svg-icons
'
import
{
FontAwesomeIcon
}
from
'
@fortawesome/vue-fontawesome
'
library
.
add
(
faFacebookSquare
,
faTwitterSquare
,
faShareAltSquare
)
Vue
.
component
(
'
font-awesome-icon
'
,
FontAwesomeIcon
);
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VuePlausible
,
{
Vue
.
use
(
VuePlausible
,
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment