Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dima Krasner
Sharkey
Commits
3bd827d7
Commit
3bd827d7
authored
5 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
Update google.vue
parent
969cd166
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/client/components/google.vue
+6
-14
6 additions, 14 deletions
src/client/components/google.vue
with
6 additions
and
14 deletions
src/client/components/google.vue
+
6
−
14
View file @
3bd827d7
<
template
>
<div
class=
"mk-google"
>
<input
type=
"search"
v-model=
"query"
:placeholder=
"q"
>
<button
@
click=
"search"
><fa
icon=
"
s
earch"
/>
{{
$t
(
'
search
'
)
}}
</button>
<button
@
click=
"search"
><fa
:
icon=
"
faS
earch"
/>
{{
$t
(
'
search
'
)
}}
</button>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'
vue
'
;
import
{
faSearch
}
from
'
@fortawesome/free-solid-svg-icons
'
;
import
i18n
from
'
../i18n
'
;
export
default
Vue
.
extend
({
...
...
@@ -14,7 +15,8 @@ export default Vue.extend({
props
:
[
'
q
'
],
data
()
{
return
{
query
:
null
query
:
null
,
faSearch
};
},
mounted
()
{
...
...
@@ -42,27 +44,17 @@ export default Vue.extend({
width
:
100%
;
height
:
40px
;
font-size
:
16px
;
color
:
var
(
--
googleSearchFg
);
background
:
var
(
--
googleSearchBg
);
border
:
solid
1px
var
(
--
googleSearchBorder
);
border
:
solid
1px
var
(
--
divider
);
border-radius
:
4px
0
0
4px
;
&
:hover
{
border-color
:
var
(
--
googleSearchHoverBorder
);
}
}
>
button
{
flex-shrink
:
0
;
padding
:
0
16px
;
border
:
solid
1px
var
(
--
googleSearchBor
der
);
border
:
solid
1px
var
(
--
divi
der
);
border-left
:
none
;
border-radius
:
0
4px
4px
0
;
&
:hover
{
background-color
:
var
(
--
googleSearchHoverButton
);
}
&
:active
{
box-shadow
:
0
2px
4px
rgba
(
#000
,
0
.15
)
inset
;
}
...
...
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