Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 18, 2020
2 parents dd13808 + 4130663 commit c07a195
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</scm>

<properties>
<org.b3log.latke.version>3.2.0</org.b3log.latke.version>
<org.b3log.latke.version>3.2.1</org.b3log.latke.version>

<jsoup.version>1.12.1</jsoup.version>
<flexmark.version>0.50.40</flexmark.version>
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/org/b3log/solo/model/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/e">Dongxu Wang</a>
* @version 1.7.0.7, Jan 16, 2020
* @version 1.7.0.8, Jan 18, 2020
* @since 0.3.1
*/
public final class Common {
Expand Down Expand Up @@ -257,16 +257,6 @@ public final class Common {
*/
public static final String POST_TO_COMMUNITY = "postToCommunity";

/**
* Key of mini postfix.
*/
public static final String MINI_POSTFIX = "miniPostfix";

/**
* Value of mini postfix.
*/
public static final String MINI_POSTFIX_VALUE = ".min";

/**
* Key of month name.
*/
Expand Down
23 changes: 1 addition & 22 deletions src/main/java/org/b3log/solo/service/DataModelService.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.7.0.14, Jan 16, 2020
* @version 1.7.0.15, Jan 18, 2020
* @since 0.3.1
*/
@Service
Expand Down Expand Up @@ -632,7 +632,6 @@ private void fillBlogHeader(final RequestContext context, final Map<String, Obje
final String skinDirName = (String) context.attr(Keys.TEMAPLTE_DIR_NAME);
dataModel.put(Option.ID_C_SKIN_DIR_NAME, skinDirName);
Keys.fillRuntime(dataModel);
fillMinified(dataModel);
fillPageNavigations(dataModel);
fillStatistic(dataModel);
fillMostUsedTags(dataModel, preference);
Expand All @@ -647,26 +646,6 @@ private void fillBlogHeader(final RequestContext context, final Map<String, Obje
}
}

/**
* Fills minified directory and file postfix for static JavaScript, CSS.
*
* @param dataModel the specified data model
*/
public void fillMinified(final Map<String, Object> dataModel) {
switch (Latkes.getRuntimeMode()) {
case DEVELOPMENT:
dataModel.put(Common.MINI_POSTFIX, "");
break;

case PRODUCTION:
dataModel.put(Common.MINI_POSTFIX, Common.MINI_POSTFIX_VALUE);
break;

default:
throw new AssertionError();
}
}

/**
* Fills side.ftl.
*
Expand Down

0 comments on commit c07a195

Please # to comment.