Skip to content

Commit

Permalink
fear[portal]: 优化体积和更新文章详情样式
Browse files Browse the repository at this point in the history
  • Loading branch information
llldddbbb committed Mar 30, 2019
1 parent 7dbb4a6 commit 1a8b34e
Show file tree
Hide file tree
Showing 65 changed files with 33 additions and 2,069 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public class ShiroConfig {
public SessionManager sessionManager(){
DefaultWebSessionManager sessionManager = new DefaultWebSessionManager();
// 是否定时检查session
sessionManager.setSessionValidationSchedulerEnabled(true);
sessionManager.setSessionIdCookieEnabled(true);
sessionManager.setSessionValidationSchedulerEnabled(false);
return sessionManager;
}

Expand Down
Binary file removed dbblog-frontend/src/assets/class.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class1.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class10.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class11.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class12.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class13.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class2.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class3.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class4.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class5.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class6.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class7.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class8.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/class9.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/icon/Facebook.png
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/icon/G+.png
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/icon/Twitter.png
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/1.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/10.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/11.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/12.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/13.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/14.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/15.jpg
Binary file not shown.
Binary file removed dbblog-frontend/src/assets/movie/16.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/2.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/3.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/4.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/5.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/6.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/7.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/8.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/movie/9.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/photowall/carousel1.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/photowall/carousel2.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/photowall/carousel3.jpg
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/photowall/nextBtn.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/photowall/prevBtn.png
Diff not rendered.
Binary file removed dbblog-frontend/src/assets/recommend.jpg
Diff not rendered.
160 changes: 32 additions & 128 deletions dbblog-frontend/src/common/stylus/article.styl
Original file line number Diff line number Diff line change
@@ -1,69 +1,4 @@
@import "theme.styl"
//
//article#article-main-page
// text-align left
// h1, h2, h3, h4, h5, h6, h7
// padding 25px 0 15px
// font-weight 700
// h1
// font-size 27px
// h2
// font-size 25px
// h3
// font-size 22px
// h4, h5, h6, h7
// font-size 20px
// ul
// list-style-type square
// line-height 1.5em
// padding-left 2.5em
// li
// list-style-type square
// margin .5em 0
// color $color-typegraphy-title
// font-weight 200
// p
// font-size 17px
// line-height 25px
// color $color-typegraphy-title
// font-weight 200
// margin 15px 0
// img
// width 100%
// code.hljs
// display block
// padding 1px
// border 0
// margin 0
// //width 100%
// //font-size 16px
// //font-weight 200
// font-family "Source Code Pro", monospace
// //background #eee !important
// //color #333
// white-space pre-wrap
// > ul
// list-style decimal
// //margin 30px 0 0 55px !important
// padding 0
// background-color #fff
// > li
// list-style decimal-leading-zero
// //padding 5px!important
// //margin 0 !important
// line-height 18px
// //background #fff
// //border-left 1px solid #ddd !important
// word-break break-all
// word-wrap break-word
// &:nth-of-type(even)
// //background-color #fcfcfc
// color inherit
//
//
//
//
//

article#article-main-page
text-align left
Expand Down Expand Up @@ -147,6 +82,26 @@ article#article-main-page
line-height 1.1em
padding-left 0.5em
margin 1em 0
> li
list-style disc
font-weight 200
@media only screen and (max-width: $responsive-sm)
font-size 14px
margin 0.2em 0
@media screen and (min-width: $responsive-sm)
font-size 14px
margin 0.3em 0
@media screen and (min-width: $responsive-md)
font-size 15px
margin 0.3em 0
@media screen and (min-width: $responsive-lg)
font-size 17px
line-height 1.2em
margin 0.5em 0
> blockquote
border-left none
> p
font-size 0.82em
ol
color $default-info-color
@media only screen and (max-width: $responsive-sm)
Expand Down Expand Up @@ -183,22 +138,10 @@ article#article-main-page
@media screen and (min-width: $responsive-lg)
font-size 17px
margin 0.5em 0
line-height 1.5em
li
//list-style decimal
font-weight 200
@media only screen and (max-width: $responsive-sm)
font-size 14px
margin 0.2em 0
@media screen and (min-width: $responsive-sm)
font-size 14px
margin 0.3em 0
@media screen and (min-width: $responsive-md)
font-size 15px
margin 0.3em 0
@media screen and (min-width: $responsive-lg)
font-size 15px
margin 0.3em 0
line-height 1.2em
> blockquote
border-left none

ol + ul, ul + ol
@media only screen and (max-width: $responsive-sm)
margin-left 0.4em
Expand Down Expand Up @@ -240,24 +183,20 @@ article#article-main-page
padding 4px 5px 4px 12px
margin 15px 0
word-wrap break-word
border-left .25em solid $default-info-color
border-left .25em solid $default-link-hover-color
background $default-border-color
@media only screen and (max-width: $responsive-sm)
padding-left 5px
margin 8px 0
border-left .25em solid $default-desc-hover-color
@media screen and (min-width: $responsive-sm)
padding-left 8px
margin 10px 0
border-left .25em solid $default-info-color
@media screen and (min-width: $responsive-md)
padding-left 10px
margin 12px 0
border-left .25em solid $default-info-color
@media screen and (min-width: $responsive-lg)
padding-left 12px
margin 15px 0
border-left .25em solid $default-info-color
> p
font-weight 300
color $default-info-color
Expand All @@ -278,8 +217,14 @@ article#article-main-page
margin 5px 0
line-height 20px

strong, b
code
li
list-style none
line-height 1em
font-size 0.88em
strong, b ,em
font-weight 700
color: orange

.table-wrap
width 100%
Expand Down Expand Up @@ -309,44 +254,3 @@ strong, b
background $default-background-color
tr:nth-child(even)
background rgba($iview-main-primary-color, 0.03)

body.dark
.article-details
.detail
.detail-footer
color $dark-desc-color
border-bottom 1px dashed $dark-border-color
article.article-main-content, .comment-main-content
h1, h2, h3, h4, h5, h6, h7
color $dark-title-color
li
color $dark-title-color
p
color $dark-title-color
blockquote
border-left 5px solid $dark-desc-hover-color
background $dark-border-color
@media only screen and (max-width: $responsive-sm)
border-left 2px solid $dark-desc-hover-color
@media screen and (min-width: $responsive-sm)
border-left 3px solid $dark-desc-hover-color
@media screen and (min-width: $responsive-md)
border-left 4px solid $dark-desc-hover-color
@media screen and (min-width: $responsive-lg)
border-left 5px solid $dark-desc-hover-color
> p
color $dark-info-color
.table-wrap
&::-webkit-scrollbar-thumb
background-color rgba(255, 255, 255, .26)
table
td, th
border 1px solid $dark-border-hover-color
color $dark-info-color
thead
th
background-color rgba($iview-main-primary-color, 0.1)
tr:nth-child(odd)
background $dark-background-color
tr:nth-child(even)
background rgba($iview-main-primary-color, 0.03)
33 changes: 0 additions & 33 deletions dbblog-frontend/src/components/content/AlbumPreviewContent.vue

This file was deleted.

18 changes: 0 additions & 18 deletions dbblog-frontend/src/components/content/HomeContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@
<title-menu-filter @filterByMenu="refreshBookNote" slot="menu" :menu-filter-list="bookNoteFilterList"></title-menu-filter>
</section-title>
<book-note-list-cell v-for="bookNote in bookNoteList" :bookNote="bookNote" :key="bookNote.title"></book-note-list-cell>
<!--<div class="topic-cards">-->
<!--<iv-row :gutter="10">-->
<!--<iv-col :xs="24" :sm="12" :md="8" :lg="8" :xl="8">-->
<!--<topic-card></topic-card>-->
<!--</iv-col>-->
<!--<iv-col :xs="24" :sm="12" :md="8" :lg="8" :xl="8">-->
<!--<topic-card></topic-card>-->
<!--</iv-col>-->
<!--<iv-col :xs="24" :sm="12" :md="8" :lg="8" :xl="8">-->
<!--<topic-card></topic-card>-->
<!--</iv-col>-->
<!--<iv-col :xs="24" :sm="12" :md="8" :lg="8" :xl="8">-->
<!--<topic-card></topic-card>-->
<!--</iv-col>-->
<!--</iv-row>-->
<!--</div>-->
</div>
</iv-col>
<iv-col :xs="0" :sm="0" :md="0" :lg="7">
Expand All @@ -52,7 +36,6 @@ import BookNoteListCell from '@/components/views/BookNote/BookNoteListCell'
import BookListCell from '@/components/views/Book/BookListCell'
import SectionTitle from '@/components/views/SectionTitle/SectionTitle'
import TitleMenuFilter from '@/components/views/SectionTitle/TitleMenuFilter'
import TopicCard from '@/components/views/TopicCard'
import ArticlePageHeader from '@/components/views/Article/ArticlePageHeader'
import ArticlePageContent from '@/components/views/Article/ArticlePageContent'
import ArchiveListTimeTitle from '@/components/views/Archive/ArchiveListTimeTitle'
Expand Down Expand Up @@ -85,7 +68,6 @@ export default {
'book-list-cell': BookListCell,
'section-title': SectionTitle,
'title-menu-filter': TitleMenuFilter,
'topic-card': TopicCard,
'article-page-header': ArticlePageHeader,
'article-page-content': ArticlePageContent,
'archive-list-time-title': ArchiveListTimeTitle,
Expand Down
Loading

0 comments on commit 1a8b34e

Please sign in to comment.