Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
idatt2106_2022_02
boco-frontend
Commits
ae068a8a
Commit
ae068a8a
authored
3 years ago
by
Sander August Heggland Schrader
Browse files
Options
Downloads
Patches
Plain Diff
Edited css
parent
2ebc7860
No related branches found
No related tags found
1 merge request
!40
Chat
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/chat/CurrentChat.vue
+4
-3
4 additions, 3 deletions
src/components/chat/CurrentChat.vue
src/main.js
+4
-1
4 additions, 1 deletion
src/main.js
with
8 additions
and
4 deletions
src/components/chat/CurrentChat.vue
+
4
−
3
View file @
ae068a8a
...
...
@@ -2,7 +2,7 @@
<div
class=
"col-span-3 sm:col-span-2 block"
>
<div
class=
"w-full"
>
<div
class=
"flex justify-between border-b border-gray-300"
>
<div
class=
"grid space-y-2 content-center m-3"
>
<div
class=
"grid
sm:hidden
space-y-2 content-center m-3"
>
<div
class=
"w-8 h-0.5 bg-gray-600"
></div>
<div
class=
"w-8 h-0.5 bg-gray-600"
></div>
<div
class=
"w-8 h-0.5 bg-gray-600"
></div>
...
...
@@ -16,9 +16,9 @@
<div></div>
</div>
<div
class=
"relative w-full p-6 overflow-y-auto
h-full
"
>
<div
class=
"relative w-full p-6 overflow-y-auto
"
style=
"max-height: 400px
"
>
<ul
class=
"space-y-2"
>
<div>
<div
>
<ChatMessage
v-for=
"(message, i) in messages"
v-bind:key=
"i"
:message=
"message"
></ChatMessage>
</div>
</ul>
...
...
@@ -46,6 +46,7 @@ import axios from 'axios';
import
{
parseCurrentUser
}
from
"
@/utils/token-utils
"
;
import
ws
from
'
@/services/ws
'
;
export
default
{
data
:
()
=>
{
return
{
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
4
−
1
View file @
ae068a8a
...
...
@@ -5,5 +5,8 @@ import store from "./store";
import
"
./index.css
"
;
import
ws
from
'
./services/ws
'
;
createApp
(
App
).
use
(
router
).
use
(
store
).
mount
(
"
#app
"
);
createApp
(
App
)
.
use
(
router
)
.
use
(
store
)
.
mount
(
"
#app
"
);
console
.
log
(
"
WS
"
,
ws
.
test
);
\ No newline at end of file
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