This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from "vue"; | |
| import Vuex from "vuex"; | |
| Vue.use(Vuex); | |
| const context = require.context("./modules", false, /\.js$/); | |
| const modules = {}; | |
| context.keys().forEach((filePath) => { | |
| let moduleName = filePath.replace(/\.\/|\.js/g, ""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const context = require.context(".", false, /\.js$/); | |
| const settings = []; | |
| context.keys().forEach((file) => { | |
| if(file !== "./index.js"){ | |
| settings.push(context(file).default) | |
| } | |
| }); | |
| export default Object.assign(...settings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration status="WARN" monitorInterval="30"> | |
| <properties> | |
| <property name="LOG_DIR">${sys:user.dir}</property> | |
| <property name="CONSOLE_LOG_PATTERN">%d{HH:mm:ss:SSS} %-5level - %l - %m%n</property> | |
| <property name="BASE_PATTERN">%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %class{36} %L %M() %m%n</property> | |
| </properties> | |
| <appenders> | |
| <!-- ConsoleAppender 方便测试, 但是日志输出频繁时,IDEA 会非常卡顿 --> | |
| <console name="Console" target="SYSTEM_OUT"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --side-bar-bg-color: #fafafa; | |
| --control-text-color: #777; | |
| } | |
| @include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext); | |
| /* open-sans-regular - latin-ext_latin */ | |
| @font-face { | |
| font-family: 'Open Sans'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.oauth2.provider.token.TokenStore; | |
| import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore; | |
| @Configuration | |
| public class AccessTokenConfig { | |
| /** | |
| * Token Store 表示生成的 AccessToken 存在哪里 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
| import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; | |
| import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; | |
| import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; | |
| import org.springframework.security.oauth2.provider.token.RemoteTokenServices; | |
| @Configuration | |
| @EnableResourceServer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.baomidou.mybatisplus.generator.FastAutoGenerator; | |
| import com.baomidou.mybatisplus.generator.config.OutputFile; | |
| import com.baomidou.mybatisplus.generator.config.rules.DateType; | |
| import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; | |
| import com.baomidou.mybatisplus.generator.engine.VelocityTemplateEngine; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.yihuo.device.dataslave.configs; | |
| import lombok.RequiredArgsConstructor; | |
| import org.springframework.amqp.core.AmqpAdmin; | |
| import org.springframework.amqp.core.Binding; | |
| import org.springframework.amqp.core.DirectExchange; | |
| import org.springframework.amqp.core.Queue; | |
| import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; | |
| import org.springframework.amqp.rabbit.connection.CachingConnectionFactory; | |
| import org.springframework.amqp.rabbit.connection.ConnectionFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.autmaple.oauth.components.redis; | |
| import com.autmaple.oauth.common.utils.SpringUtil; | |
| import org.springframework.data.redis.core.RedisCallback; | |
| import org.springframework.data.redis.core.RedisTemplate; | |
| import java.util.Collection; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| target/ | |
| !.mvn/wrapper/maven-wrapper.jar | |
| !**/src/main/**/target/ | |
| !**/src/test/**/target/ | |
| ### IntelliJ IDEA ### | |
| .idea/modules.xml | |
| .idea/jarRepositories.xml | |
| .idea/compiler.xml | |
| .idea/libraries/ |
OlderNewer